mirror of
https://github.com/php/php-src.git
synced 2024-12-18 14:30:35 +08:00
07aa25b442
(re-apply 309308, dmitry)
18 lines
372 B
PHP
18 lines
372 B
PHP
--TEST--
|
|
Bug #54265 (crash when variable gets reassigned in error handler)
|
|
--FILE--
|
|
<?php
|
|
function my_errorhandler($errno,$errormsg) {
|
|
global $my_var;
|
|
$my_var = 0;
|
|
echo "EROOR: $errormsg\n";
|
|
}
|
|
set_error_handler("my_errorhandler");
|
|
$my_var = str_repeat("A",$my_var[0]->errormsg = "xyz");
|
|
echo "ok\n";
|
|
?>
|
|
--EXPECT--
|
|
EROOR: Creating default object from empty value
|
|
ok
|
|
|