PHP 5.6.0 -- Released

  • The PHP Development Team announces the immediate availability of PHP 5.6.0. This new version release comes with new features, some backward incompatible changes and many improvements.

    The main features of PHP 5.6.0 include:

    • Constant scalar expressions.
    • Variadic functions and argument unpacking using the ... operator.
    • Exponentiation using the ** operator.
    • Function and constant importing with the use keyword.
    • phpdbg as an interactive integrated debugger SAPI.
    • php://input is now reusable, and $HTTP_RAW_POST_DATA is deprecated.
    • GMP objects now support operator overloading.
    • File uploads larger than 2 gigabytes in size are now accepted.
    • For a full list of new features, you may read the new features chapter of the migration guide.

    PHP 5.6.0 also introduces changes that affect compatibility:

    • Array keys won't be overwritten when defining an array as a property of a class via an array literal.
    • json_decode() is more strict in JSON syntax parsing.
    • Stream wrappers now verify peer certificates and host names by default when using SSL/TLS.
    • GMP resources are now objects.
    • Mcrypt functions now require valid keys and IVs.
    • For users upgrading from PHP 5.5, a full migration guide is available, detailing the changes between 5.5 and 5.6.0.

    PHP 5.6 Documentation highlights

    Deprecated features in PHP 5.6.x

    Migrating from PHP 5.5.x to PHP 5.6.x

    Backward incompatible changes between 5.5.x and 5.6.x

    New features in PHP 5.6.x

  • Just to recall what I've been telling people....

    PHP 5.4 reaches end of life March 2015 (That's only 6 months from now). At the current moment (today) all it offers is security updates. After March 2015 PHP 5.4 will be discontinued (end of life).

    At which time (March 2015) PHP 5.5 will also be placed in a security update status as well.

    The bulk of development is going to focus around 5.6 and its features and the upcoming PHP v7 which will be released roughly around 2 years from today. PHP 5.6 will be the last of the 5.x.x series.

    I would recommend everyone upgrade to 5.6 in order to get the most out of the 5.x series, as well as the performance boost it does currently offer.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!