PHP 5.6.0 發布了!
PHP 5.6.0 正式發布了,此版本包括了許多新特性,還有一些向后兼容的改進和其他的系統改進。
主要特性:
Variadic functions and argument unpacking using the...operator.
Function and constant importing with the use keyword.
phpdbg 作為一個交互式集成的調試器 SAPI
php://input 現在可以復用,廢棄了 $HTTP_RAW_POST_DATA
GMP 對象支持操作符重載
允許上傳超過 2G 的文件
更多新特性請看the new features chapter of the migration guide。
PHP 5.6.0 兼容性方面改進:
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.
PHP 5.5 用戶升級請看完整的遷移指導。
PHP 5.6.0 現已提供源代碼下載和Windows 二進制下載。
完整更新記錄請看 ChangeLog。
來自:http://www.oschina.net/news/54817/php-5-6