php-src/Zend/tests/bug64578.phpt
2020-08-09 22:03:36 +02:00

16 lines
285 B
PHP

--TEST--
Bug #64578 (debug_backtrace in set_error_handler corrupts zend heap: segfault)
--FILE--
<?php
set_error_handler(function($no, $err) { var_dump($err); });
function x($s) { $s['2a'] = 1; };
$y = '1';
x($y);
print_r($y);
?>
--EXPECT--
string(26) "Illegal string offset "2a""
1