The new release of the PHP scripting language promises more performance and brings a few new features.
Almost fifteen months after the release of PHP 5.5, there is again a major release of the popular scripting language for the web. Version 5.6 offers more performance and introduces some changes to the syntax, so could now variadic function are inserted, which can pass any number of arguments. See also the splat operator was included. Useful are variadic functions, for example, in linking multiple strings or the summing of numbers and generally in operations that can be applied in principle to any number of operands.
The use operant was also extended to facilitate the import of functions and constants, as with the classes. Revamped the interactive PHP debugger was also phpdbg. It has an interactive debugger, integrated SAPI module. For more security in the applications, the function hash_equals () have been introduced to improve the use of SSL / TLS and also was the hash algorithm gost-crypto added. In addition, the version file uploads accepted by more than 2 GB. A few points there are complaining even with backward compatibility. So array keys are no longer overwritten when you define an array with an array literal as a property of a class.
In particular, any changes in PHP 5.6 are in the changelog.
- Constant scalar expressions
- Variadic functions via …
- Argument unpacking via …
- Exponentiation via **
- Default character encoding
- php://input is reusable
- Large file uploads
- GMP supports operator overloading
- hash_equals() for timing attack safe string comparison
- gost-crypto hash algorithm
- SSL/TLS improvements
- pgsql async support
Install PHP 5.6.0 on Ubuntu 14.04 & Ubuntu 14.10:
sudo add-apt-repository ppa:ondrej/php5-5.6
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install php5