Home » » PHP 5.6.0 Released – What’s New In It?

PHP 5.6.0 Released – What’s New In It?

jaki watson | 00:15 | 0 comments

PHP Web Development
The immediate availability of PHP 5.6.0 is announced by the PHP Development Team with latest features, some backward incompatible changes and many improvements.

PHP is one of the mostly used scripting languages that designed to fill the gap between Server Side Includes and Perl, intended for the web environment. The implementation of web pages that have dynamic content is its principal application.

This amazing language derived from its C-like syntax and its simplicity. The latest release of PHP, i.e. PHP 5.6.0 has better security, features and performance. Some of the primary features of PHP 5.6.0 include

  • php://input is now reusable, and $HTTP_RAW_POST_DATA is deprecated.

  • Variadic functions and argument unpacking using the ... operator.

  • File uploads larger than 2 gigabytes in size are now accepted.

  • Function and constant importing with the use keyword.

  • phpdbg as an interactive integrated debugger SAPI.

  • GMP objects now support operator overloading.

  • Exponentiation using the ** operator.

  • Constant scalar expressions.

Moving eyes towards, we have some important points including:

  • Improved syntax for variadic functions, functions that can accept an arbitrary number of arguments

  • POST data memory usage decreased and ::/input is reusable

  • Importing namespaced functions and constants

  • MIME types in the CLI web server have been added

  • Uploads of over 2GB are now accepted

  • Exponentiation ($a = 2**3;)

  • Argument unpacking

  • Internal Operator Overloading

  • Constant Scalar Expressions

  • PHPDBG bundled by default

  • Zip improved

  • Default UTF-8

  • GMP operator overloading

What About Updating?

Users might have question about update process. Let me clear first, they have to add new repos to your OS or compile from source to get them to work. Moreover, the update of the original Homestead box with 5.6., has been promised by Taylor Otwell, so users can continue to use Homestead Improved as they always did.

One can only have to run vagrant box update and box will be refreshed with the latest version. This can be done with the original Homestead as well as your own Homestead Improved. It will take some time for Vagrant to redownload the box. But, once it is done, everything should be easy.

The changes affect compatibility is also introduced by PHP 5.6.0 such as:
  • Stream wrappers now verify peer certificates and host names by default when using SSL/TLS.

  • Array keys won't be overwritten when defining an array as a property of a class via an array literal.

  • GMP resources are now objects.

  • Mcrypt functions now require valid keys and IVs.

  • json_decode() is more strict in JSON syntax parsing.

Apart from, those people, who want to grab details about the changes between 5.5 and 5.6.0, can have a full migration guide.

Information Regarding PHP Development Company Portfolio Click here.
Share this article :


Post a Comment

Design by: