Annotation of embedaddon/php/Zend/tests/bug48004.phpt, revision 1.1

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

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>