1
0
mirror of https://github.com/php/php-src.git synced 2026-04-24 16:38:25 +02:00

Use 5.4 specifical warnnig & Update NEWs

This commit is contained in:
Xinchen Hui
2013-04-04 14:47:49 +08:00
parent f4f8b5a94b
commit 82ac3106e0
2 changed files with 9 additions and 9 deletions
+2
View File
@@ -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)
+7 -9
View File
@@ -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