diff options
author | Xinchen Hui <laruence@php.net> | 2013-04-04 14:47:49 +0800 |
---|---|---|
committer | Xinchen Hui <laruence@php.net> | 2013-04-04 14:47:49 +0800 |
commit | 82ac3106e061b31ccbbf53a5276eae441254057d (patch) | |
tree | ff9ae6d07b7e49b4dc04e3d9c606b983d7812098 /Zend/tests/bug64578.phpt | |
parent | f4f8b5a94b57bbbc384e94de9e6d771d4dbb1e5e (diff) | |
download | php-git-82ac3106e061b31ccbbf53a5276eae441254057d.tar.gz |
Use 5.4 specifical warnnig & Update NEWs
Diffstat (limited to 'Zend/tests/bug64578.phpt')
-rw-r--r-- | Zend/tests/bug64578.phpt | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/Zend/tests/bug64578.phpt b/Zend/tests/bug64578.phpt index 65c51d94ff..73b3ec4f97 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 |