{"id":494,"date":"2016-01-08T09:22:37","date_gmt":"2016-01-08T01:22:37","guid":{"rendered":"http:\/\/down.cdhaha.net\/?p=494"},"modified":"2016-01-08T09:22:37","modified_gmt":"2016-01-08T01:22:37","slug":"php","status":"publish","type":"post","link":"http:\/\/down.cdhaha.net\/?p=494","title":{"rendered":"PHP 7.0.2"},"content":{"rendered":"<p><a href=\"http:\/\/www.php.net\/\" target=\"_blank\"><img decoding=\"async\" class=\"alignright\" title=\"PHP\" src=\"wp-content\/uploads\/2009\/05\/php.gif\" alt=\"PHP\" \/><\/a>PHP\u662f\u4e00\u79cd\u65b0\u578b\u7684CGI\u7a0b\u5e8f\u7f16\u5199\u8bed\u8a00\uff0c\u6613\u5b66\u6613\u7528\uff0c\u8fd0\u884c\u901f\u5ea6\u5feb\uff0c\u53ef\u4ee5\u65b9\u4fbf\u5feb\u6377\u5730\u7f16\u5199\u51fa\u529f\u80fd\u5f3a\u5927\uff0c\u8fd0\u884c\u901f\u5ea6\u5feb\uff0c\u5e76\u53ef\u540c\u65f6\u8fd0\u884c\u4e8e Windows\u3001Unix\u3001Linux\u5e73\u53f0\u7684Web\u540e\u53f0\u7a0b\u5e8f\uff0c\u5185\u7f6e\u4e86\u5bf9\u6587\u4ef6\u4e0a\u4f20\u3001\u5bc6\u7801\u8ba4\u8bc1\u3001Cookies\u64cd\u4f5c\u3001\u90ae\u4ef6\u6536\u53d1\u3001\u52a8\u6001GIF\u751f\u6210\u7b49\u529f\u80fd\uff0cPHP \u76f4\u63a5\u4e3a\u5f88\u591a\u6570\u636e\u5e93\u63d0\u4f9b\u539f\u672c\u7684\u8fde\u63a5\uff0c\u5305\u62ecOracle\u3001Sybase\u3001Postgres\u3001Mysql\u3001Informix\u3001Dbase\u3001Solid\u3001 Access\u7b49\uff0c\u5b8c\u5168\u652f\u6301ODBC\u63a5\u53e3\uff0c\u7528\u6237\u66f4\u6362\u5e73\u53f0\u65f6\uff0c\u65e0\u9700\u53d8\u6362PHP\u4ee3\u7801\uff0c\u53ef\u5373\u62ff\u5373\u7528\u3002<\/p>\n<p>\u6839\u636e\u6b64\u524d\u516c\u5e03\u7684\u8def\u7ebf\u56fe\uff0cPHP 7.0\u6b63\u5f0f\u7248\u5c06\u4e8e12\u67083\u65e5\u6b63\u5f0f\u4e0a\u7ebf\u3002\u4e0d\u8fc7\u5728\u6570\u5c0f\u65f6\u4e4b\u524d\uff0cPHP\u53d1\u5e03\u7ecf\u7406Anatol Belski\u7387\u5148\u901a\u8fc7GitHub\u4e0a\u63a8\u51fa\u4e86PHP 7.0.0\u6b63\u5f0f\u7248\uff0c\u76ee\u524d\u6682\u65f6\u6ca1\u6709\u5b98\u65b9\u8bf4\u660e\uff0c\u4f46\u53ef\u4ee5\u5728GitHub\u4e0a\u8bbf\u95ee\u8be6\u7ec6\u6539\u8fdb\uff0c\u610f\u5473\u7740\u660e\u5929\u5728php.net\u5b98\u65b9\u7f51\u7ad9\u6b63\u5f0f\u516c\u5e03\u4e4b\u540e\u80fd\u591f\u67e5\u770b\u8be6\u7ec6\u7684\u66f4\u65b0\u65e5\u5fd7\u3002<\/p>\n<p>PHP 7.0.0\u6b63\u5f0f\u7248\u5728\u6027\u80fd\u65b9\u9762\u6709\u4e86\u975e\u5e38\u660e\u663e\u7684\u63d0\u5347\u4e14\u652f\u630164\u4f4d\uff0c\u5305\u542b\u6700\u65b0\u7248Zend\u5f15\u64ce\uff0c\u5728\u5f3a\u7c7b\u578b\u548c\u533f\u540d\u7c7b\u65b9\u9762\u505a\u51fa\u4e86\u8bf8\u591a\u4fee\u6b63\u548c\u6539\u5584\uff0c\u53ef\u8c13\u662f\u5728\u6027\u80fd\u663e\u8457\u63d0\u5347\u7684\u524d\u63d0\u4e0b\u5bf9\u7cfb\u7edf\u7684\u6bcf\u4e2a\u529f\u80fd\u90fd\u6709\u4e0d\u540c\u7a0b\u5ea6\u7684\u52a0\u6210\u3002\u5b98\u65b9\u6587\u6863\u4e2d\u5df2\u7ecf\u8be6\u7ec6\u4ecb\u7ecd\u4e86\u5982\u4f55\u4ecePHP 5.6.x\u8fc1\u79fb\u5230PHP 7.0.x\uff0c\u5e76\u516c\u5e03\u4e86\u7cfb\u7edf\u7684\u90e8\u5206\u65b0\u7279\u6027\u3002<br \/>\n<!--more--><\/p>\n<p>PHP 7 ChangeLog<br \/>\nVersion 7.0.2<br \/>\n07 Jan 2016<br \/>\n    Core:<br \/>\n        Fixed bug #71165 (-DGC_BENCH=1 doesn&#8217;t work on PHP7).<br \/>\n        Fixed bug #71163 (Segmentation Fault: cleanup_unfinished_calls).<br \/>\n        Fixed bug #71109 (ZEND_MOD_CONFLICTS(&#8220;xdebug&#8221;) doesn&#8217;t work).<br \/>\n        Fixed bug #71092 (Segmentation fault with return type hinting).<br \/>\n        Fixed bug memleak in header_register_callback.<br \/>\n        Fixed bug #71067 (Local object in class method stays in memory for each call).<br \/>\n        Fixed bug #66909 (configure fails utf8_to_mutf7 test).<br \/>\n        Fixed bug #70781 (Extension tests fail on dynamic ext dependency).<br \/>\n        Fixed bug #71089 (No check to duplicate zend_extension).<br \/>\n        Fixed bug #71086 (Invalid numeric literal parse error within highlight_string() function).<br \/>\n        Fixed bug #71154 (Incorrect HT iterator invalidation causes iterator reuse).<br \/>\n        Fixed bug #52355 (Negating zero does not produce negative zero).<br \/>\n        Fixed bug #66179 (var_export() exports float as integer).<br \/>\n        Fixed bug #70804 (Unary add on negative zero produces positive zero).<br \/>\n    CURL:<br \/>\n        Fixed bug #71144 (Sementation fault when using cURL with ZTS).<br \/>\n    DBA:<br \/>\n        Fixed key leak with invalid resource.<br \/>\n    Filter:<br \/>\n        Fixed bug #71063 (filter_input(INPUT_ENV, ..) does not work).<br \/>\n    FTP:<br \/>\n        Implemented FR #55651 (Option to ignore the returned FTP PASV address).<br \/>\n    FPM:<br \/>\n        Fixed bug #70755 (fpm_log.c memory leak and buffer overflow).<br \/>\n    GD:<br \/>\n        Fixed bug #70976 (Memory Read via gdImageRotateInterpolated Array Index Out of Bounds). (CVE-2016-1903)<br \/>\n    Mbstring:<br \/>\n        Fixed bug #71066 (mb_send_mail: Program terminated with signal SIGSEGV, Segmentation fault).<br \/>\n    Opcache:<br \/>\n        Fixed bug #71127 (Define in auto_prepend_file is overwrite).<br \/>\n    PCRE:<br \/>\n        Fixed bug #71178 (preg_replace with arrays creates [0] in replace array if not already set).<br \/>\n    Readline:<br \/>\n        Fixed bug #71094 (readline_completion_function corrupts static array on second TAB).<br \/>\n    Session:<br \/>\n        Fixed bug #71122 (Session GC may not remove obsolete session data).<br \/>\n    SPL:<br \/>\n        Fixed bug #71077 (ReflectionMethod for ArrayObject constructor returns wrong number of parameters).<br \/>\n        Fixed bug #71153 (Performance Degradation in ArrayIterator with large arrays).<br \/>\n    Standard:<br \/>\n        Fixed bug #71270 (Heap BufferOver Flow in escapeshell functions). (CVE-2016-1904)<br \/>\n    WDDX:<br \/>\n        Fixed bug #70661 (Use After Free Vulnerability in WDDX Packet Deserialization).<br \/>\n        Fixed bug #70741 (Session WDDX Packet Deserialization Type Confusion Vulnerability).<br \/>\n    XMLRPC:<br \/>\n        Fixed bug #70728 (Type Confusion Vulnerability in PHP_to_XMLRPC_worker).<\/p>\n<div class=\"but_down\"><a href=\"http:\/\/windows.php.net\/download#php-7.0\"target=\"_blank\"><span>For Win<\/span><\/a><div class=\"clear\"><\/div><\/div>\n<p>=================================================<\/p>\n<p><strong>PHP 5.6.17<\/strong><\/p>\n<div class=\"but_down\"><a href=\"http:\/\/windows.php.net\/download#php-5.6\"target=\"_blank\"><span>For Win<\/span><\/a><div class=\"clear\"><\/div><\/div>\n<p>&nbsp;<\/p>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>PHP\u662f\u4e00\u79cd\u65b0\u578b\u7684CGI\u7a0b\u5e8f\u7f16\u5199\u8bed\u8a00\uff0c\u6613\u5b66\u6613\u7528\uff0c\u8fd0\u884c\u901f\u5ea6\u5feb\uff0c\u53ef\u4ee5\u65b9\u4fbf\u5feb\u6377\u5730\u7f16\u5199\u51fa\u529f\u80fd\u5f3a\u5927\uff0c\u8fd0\u884c\u901f\u5ea6\u5feb\uff0c\u5e76\u53ef\u540c\u65f6\u8fd0\u884c\u4e8e Windows\u3001Unix\u3001Linux\u5e73\u53f0\u7684Web\u540e\u53f0\u7a0b\u5e8f\uff0c\u5185\u7f6e\u4e86\u5bf9\u6587\u4ef6\u4e0a\u4f20\u3001\u5bc6\u7801\u8ba4\u8bc1\u3001Cookies\u64cd\u4f5c\u3001\u90ae\u4ef6\u6536\u53d1\u3001\u52a8\u6001GIF\u751f\u6210\u7b49\u529f\u80fd\uff0cPHP \u76f4\u63a5\u4e3a\u5f88\u591a\u6570\u636e\u5e93\u63d0\u4f9b\u539f\u672c\u7684\u8fde\u63a5\uff0c\u5305\u62ecOracle\u3001Sybase\u3001Postgres\u3001Mysql\u3001Informix\u3001Dbase\u3001Solid\u3001 Access\u7b49\uff0c\u5b8c\u5168\u652f\u6301ODBC\u63a5\u53e3\uff0c\u7528\u6237\u66f4\u6362\u5e73\u53f0\u65f6\uff0c\u65e0\u9700\u53d8\u6362PHP\u4ee3\u7801\uff0c\u53ef\u5373\u62ff\u5373\u7528\u3002 \u6839\u636e\u6b64\u524d\u516c\u5e03\u7684\u8def\u7ebf\u56fe\uff0cPHP 7.0\u6b63\u5f0f\u7248\u5c06\u4e8e12\u67083\u65e5\u6b63\u5f0f\u4e0a\u7ebf\u3002\u4e0d\u8fc7\u5728\u6570\u5c0f\u65f6\u4e4b\u524d\uff0cPHP\u53d1\u5e03\u7ecf\u7406Anatol Belski\u7387\u5148\u901a\u8fc7GitHub\u4e0a\u63a8\u51fa\u4e86PHP 7.0.0\u6b63\u5f0f\u7248\uff0c\u76ee\u524d\u6682\u65f6\u6ca1\u6709\u5b98\u65b9\u8bf4\u660e\uff0c\u4f46\u53ef\u4ee5\u5728GitHub\u4e0a\u8bbf\u95ee\u8be6\u7ec6\u6539\u8fdb\uff0c\u610f\u5473\u7740\u660e\u5929\u5728php.net\u5b98\u65b9\u7f51\u7ad9\u6b63\u5f0f\u516c\u5e03\u4e4b\u540e\u80fd\u591f\u67e5\u770b\u8be6\u7ec6\u7684\u66f4\u65b0\u65e5\u5fd7\u3002 PHP 7.0.0\u6b63\u5f0f\u7248\u5728\u6027\u80fd\u65b9\u9762\u6709\u4e86\u975e\u5e38\u660e\u663e\u7684\u63d0\u5347\u4e14\u652f\u630164\u4f4d\uff0c\u5305\u542b\u6700\u65b0\u7248Zend\u5f15\u64ce\uff0c\u5728\u5f3a\u7c7b\u578b\u548c\u533f\u540d\u7c7b\u65b9\u9762\u505a\u51fa\u4e86\u8bf8\u591a\u4fee\u6b63\u548c\u6539\u5584\uff0c\u53ef\u8c13\u662f\u5728\u6027\u80fd\u663e\u8457\u63d0\u5347\u7684\u524d\u63d0\u4e0b\u5bf9\u7cfb\u7edf\u7684\u6bcf\u4e2a\u529f\u80fd\u90fd\u6709\u4e0d\u540c\u7a0b\u5ea6\u7684\u52a0\u6210\u3002\u5b98\u65b9\u6587\u6863\u4e2d\u5df2\u7ecf\u8be6\u7ec6\u4ecb\u7ecd\u4e86\u5982\u4f55\u4ecePHP 5.6.x\u8fc1\u79fb\u5230PHP 7.0.x\uff0c\u5e76\u516c\u5e03\u4e86\u7cfb\u7edf\u7684\u90e8\u5206\u65b0\u7279\u6027\u3002<!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons generic via filter on get_the_excerpt --><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[141],"tags":[290],"_links":{"self":[{"href":"http:\/\/down.cdhaha.net\/index.php?rest_route=\/wp\/v2\/posts\/494"}],"collection":[{"href":"http:\/\/down.cdhaha.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/down.cdhaha.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/down.cdhaha.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/down.cdhaha.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=494"}],"version-history":[{"count":0,"href":"http:\/\/down.cdhaha.net\/index.php?rest_route=\/wp\/v2\/posts\/494\/revisions"}],"wp:attachment":[{"href":"http:\/\/down.cdhaha.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=494"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/down.cdhaha.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=494"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/down.cdhaha.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=494"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}