mirror of
https://github.com/php/php-src.git
synced 2024-12-21 16:00:18 +08:00
22 lines
346 B
PHP
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
|
|
)
|