mirror of
https://github.com/php/php-src.git
synced 2024-12-21 16:00:18 +08:00
ded3d984c6
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
15 lines
280 B
PHP
15 lines
280 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['a'] = 1; };
|
|
$y = '1';
|
|
x($y);
|
|
print_r($y);
|
|
--EXPECT--
|
|
string(25) "Illegal string offset 'a'"
|
|
1
|