Commit: 82ac3106e061b31ccbbf53a5276eae441254057d Author: Xinchen Hui <larue...@php.net> Thu, 4 Apr 2013 14:47:49 +0800 Parents: f4f8b5a94b57bbbc384e94de9e6d771d4dbb1e5e Branches: PHP-5.4
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=82ac3106e061b31ccbbf53a5276eae441254057d Log: Use 5.4 specifical warnnig & Update NEWs Changed paths: M NEWS M Zend/tests/bug64578.phpt Diff: diff --git a/NEWS b/NEWS index 7960f65..951a96a 100644 --- a/NEWS +++ b/NEWS @@ -2,6 +2,8 @@ PHP NEWS ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| ?? ??? 2013, PHP 5.4.15 - Core: + . Fixed bug #64578 (debug_backtrace in set_error_handler corrupts zend heap: + segfault). (Laruence) . Fixed bug #64433 (follow_location parameter of context is ignored for most response codes). (Sergey Akbarov) diff --git a/Zend/tests/bug64578.phpt b/Zend/tests/bug64578.phpt index 65c51d9..73b3ec4 100644 --- a/Zend/tests/bug64578.phpt +++ b/Zend/tests/bug64578.phpt @@ -2,14 +2,12 @@ Bug #64578 (debug_backtrace in set_error_handler corrupts zend heap: segfault) --FILE-- <?php -function x($s) { - $resource = fopen("php://input", "r"); - $s[$resource] = '2'; -} -$y = "1"; + +set_error_handler(function() { debug_backtrace(); }); + +function x($s) { $s['a'] = 1; }; +$y = '1'; x($y); -var_dump($y); -?> +print_r($y); --EXPECTF-- -Warning: Illegal offset type in %sbug64578.php on line %d -string(1) "1" +1 -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php