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:
@@ -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)
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user