xref: /PHP-5.6/Zend/tests/bug48004.phpt (revision fb3c73da)
1--TEST--
2Bug #48004 (Error handler prevents creation of default object)
3--FILE--
4<?php
5function error_handler($errno, $errstr, $errfile, $errline, $errcontext) {
6        return true;
7}
8
9function test() {
10        $data->id = 1;
11        print_r($data);
12}
13
14set_error_handler("error_handler");
15test();
16?>
17--EXPECT--
18stdClass Object
19(
20    [id] => 1
21)
22