Annotation of embedaddon/php/Zend/tests/error_reporting08.phpt, revision 1.1.1.1

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

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