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

1.1     ! misho       1: --TEST--
        !             2: testing @ and error_reporting - 3
        !             3: --FILE--
        !             4: <?php
        !             5: 
        !             6: error_reporting(E_ALL);
        !             7: 
        !             8: function foo($arg) {
        !             9:        echo @$nonex_foo;
        !            10: }
        !            11: 
        !            12: function bar() {
        !            13:        echo @$nonex_bar;
        !            14:        throw new Exception("test");
        !            15: }
        !            16: 
        !            17: function foo1() {
        !            18:        echo $undef1;
        !            19:        error_reporting(E_ALL|E_STRICT);
        !            20:        echo $undef2;
        !            21: }
        !            22: 
        !            23: try {
        !            24:        @foo(@bar(@foo1()));
        !            25: } catch (Exception $e) {
        !            26: }
        !            27: 
        !            28: var_dump(error_reporting());
        !            29: 
        !            30: echo "Done\n";
        !            31: ?>
        !            32: --EXPECTF--    
        !            33: Notice: Undefined variable: undef2 in %s on line %d
        !            34: int(32767)
        !            35: Done

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