mirror of
https://github.com/php/php-src.git
synced 2025-01-07 19:44:02 +08:00
16 lines
304 B
Plaintext
16 lines
304 B
Plaintext
|
--TEST--
|
||
|
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";
|
||
|
x($y);
|
||
|
var_dump($y);
|
||
|
?>
|
||
|
--EXPECTF--
|
||
|
Warning: Illegal offset type in %sbug64578.php on line %d
|
||
|
string(1) "1"
|