php-src/Zend/tests/bug48004.phpt

22 lines
346 B
PHP

--TEST--
Bug #48004 (Error handler prevents creation of default object)
--FILE--
<?php
function error_handler($errno, $errstr, $errfile, $errline, $errcontext) {
return true;
}
function test() {
$data->id = 1;
print_r($data);
}
set_error_handler("error_handler");
test();
?>
--EXPECT--
stdClass Object
(
[id] => 1
)