summaryrefslogtreecommitdiff
path: root/Zend/tests/bug48004.phpt
blob: c8dd0b388024c8fae0a33aaeea52ee64dd50d120 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--TEST--
Bug #48004 (Error handler prevents creation of default object)
--FILE--
<?php
function error_handler($errno, $errstr, $errfile, $errline) {
        return true;
}

function test() {
        $data->id = 1;
        print_r($data);
}

set_error_handler("error_handler");
test();
?>
--EXPECT--
stdClass Object
(
    [id] => 1
)