X

The leading edge of scripting languages and Oracle Database brought to you by the Data Access Development team

  • php
    March 13, 2012

PHP 5.4.0 RPMs for 64bit Oracle Linux 5.x are available

Christopher Jones
Senior Principal Product Manager

I've published some vanilla PHP 5.4.0 RPMs to make new feature testing easier for Oracle Linux 5.x 64 bit users. The standard set of RPMs is at oss.oracle.com/projects/php. The OCI8 extension is also available (this requires the free Oracle Instant Client 11.2 from ULN or OTN.)

Some of the features of PHP 5.4 are:

  • Improved memory usage and performance. Some impressive preliminary reports of the benefits include: http://news.php.net/php.internals/57760 and http://news.php.net/php.internals/57747.

  • File Upload progress support is natively implemented.

  • Support for Traits now allows code reuse:

        trait t1 {

    function m1() { echo "hi"; }

    function m2() { echo "bye"; }
    }
    class my_c1 {

    use t1;

    /*...*/
    }
    class my_c2 extends c2 {

    use t1;

    /*...*/
    }
  • A built-in HTTP server for development is included:

      php -S 127.0.0.1:8888
  • Improvements were made to the interactive PHP shell (when PHP is compiled with readline).

  • A shortened array syntax was introduced: $a = [1,2,3];

  • The default character set for several internal functions was changed to UTF-8.

  • Support for multibyte languages is now configurable at run-time instead of compile-time.

  • The value echo tag "<?=" is now always on.

  • Binary number support was added.

  • DTrace support was added.

  • A new typehint indicates a function argument must be callable.

  • Session entropy uses /dev/urandom or /dev/arandom by default for extra security if either is

    present at compile time.

  • Function call results can now be immediately dereferenced as arrays:

    foo()[0]

  • Class members can be accessed on instantiation: (new foo)->method()

For more changes see the migration documentation.

Be the first to comment

Comments ( 0 )
Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.