欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

PHP 7.0.2 正式版发布

程序员文章站 2023-11-09 16:13:10
七年以来,php一直是第四大最流行的编程语言,驱动全球超过2亿多个网站,全球超过81.7%的公共网站在服务器端采用php。php在这个星期有了自2004年以来最大的飞跃,因...

七年以来,php一直是第四大最流行的编程语言,驱动全球超过2亿多个网站,全球超过81.7%的公共网站在服务器端采用php。php在这个星期有了自2004年以来最大的飞跃,因为php 7已经发布。 php 7最大特色是极大地改进了性能,在一些wordpress基准测试当中,性能可以达到php 5.6的3倍。

PHP 7.0.2 正式版发布

下载地址:

php 7.0.2 final for windows 32-bit (14.59 mb)
php 7.0.2 final for windows 64-bit (14.59 mb)
php 7.0.2 final for linux (10.52 mb)

php 7还有其他一些比较小的改进,比如显著减少内存使用,添加返回类型声明等等功能。php 7包含了一些重大安全改进,如除去php安全模式,添加魔术引号,有一些新的保留关键字等等。这意味着像wordpress等web应用程序需要局部重新设计,以便为php 7发布做好准备,现在wordpress看起来已经完全兼容php 7。

虽然php 7已经发布,但是广泛采用还需要数年之久,web应用,特别是针对企业的web应用,要花费几年时间才能升级到新版本平台。然而,很多web开发人员都认为,php 7巨大的性能改进对他们很有吸引力。

version 7.0.2

07 jan 2016

core:

fixed bug #71165 (-dgc_bench=1 doesn't work on php7).
fixed bug #71163 (segmentation fault: cleanup_unfinished_calls).
fixed bug #71109 (zend_mod_conflicts("xdebug") doesn't work).
fixed bug #71092 (segmentation fault with return type hinting).
fixed bug memleak in header_register_callback.
fixed bug #71067 (local object in class method stays in memory for each call).
fixed bug #66909 (configure fails utf8_to_mutf7 test).
fixed bug #70781 (extension tests fail on dynamic ext dependency).
fixed bug #71089 (no check to duplicate zend_extension).
fixed bug #71086 (invalid numeric literal parse error within highlight_string() function).
fixed bug #71154 (incorrect ht iterator invalidation causes iterator reuse).
fixed bug #52355 (negating zero does not produce negative zero).
fixed bug #66179 (var_export() exports float as integer).
fixed bug #70804 (unary add on negative zero produces positive zero).

curl:

fixed bug #71144 (sementation fault when using curl with zts).

dba:
fixed key leak with invalid resource.
filter:
fixed bug #71063 (filter_input(input_env, ..) does not work).

ftp:

implemented fr #55651 (option to ignore the returned ftp pasv address).
fpm:

fixed bug #70755 (fpm_log.c memory leak and buffer overflow).

gd:

fixed bug #70976 (memory read via gdimagerotateinterpolated array index out of bounds).

mbstring:

fixed bug #71066 (mb_send_mail: program terminated with signal sigsegv, segmentation fault).

opcache:

fixed bug #71127 (define in auto_prepend_file is overwrite).

pcre:

fixed bug #71178 (preg_replace with arrays creates [0] in replace array if not already set).

readline:

fixed bug #71094 (readline_completion_function corrupts static array on second tab).

session:

fixed bug #71122 (session gc may not remove obsolete session data).

spl:

fixed bug #71077 (reflectionmethod for arrayobject constructor returns wrong number of parameters).
fixed bug #71153 (performance degradation in arrayiterator with large arrays).

standard:

fixed bug #71270 (heap bufferover flow in escapeshell functions).

wddx:

fixed bug #70661 (use after free vulnerability in wddx packet deserialization).
fixed bug #70741 (session wddx packet deserialization type confusion vulnerability).

xmlrpc:

fixed bug #70728 (type confusion vulnerability in php_to_xmlrpc_worker).

php 7.0.2正式版发布:wordpress速度提升3倍!

提到php,肯定会有人说这是世界上最好的编程语言。单说流行程度,目前全球超过81.7%的服务器后端都采用了php语言,它驱动着全球超过2亿多个网站。上月初php7正式版发布,迎来自2004年以来最大的版本更新。现在,php 7.0.2又正式发布。

php7最显著的变化就是性能的极大提升,已接近facebook开发的php执行引擎hhvm。在wordpress基准性能测试中,速度比5.6版本要快2~3倍,大大减少了内存占用。php7在语言上也有一些变化,比如添加返回类型声明、增加了一些新的保留关键字等。在安全方面,去除了php安全模式,添加魔术引号等。不仅如此,新版还支持64位,而且包含最新版zend引擎。
虽然已正式发布,但php7的普及还需要很长时间,很多web托管服务、企业web应用出于兼容性考虑,在未来很长一段时间内可能都还会继续使用旧版本。不过,目前来看,全球最流行的php博客平台wordpress已经为php7最好了准备。