Annotation of embedaddon/php/Zend/tests/error_reporting06.phpt, revision 1.1.1.2

1.1       misho       1: --TEST--
                      2: testing @ and error_reporting - 6
                      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:        echo $undef3;
                     16:        throw new Exception("test");
                     17: }
                     18: 
                     19: try {
                     20:        @foo1(@foo2(@foo3()));
                     21: } catch (Exception $e) {
                     22: }
                     23: 
                     24: var_dump(error_reporting());
                     25: 
                     26: echo "Done\n";
                     27: ?>
                     28: --EXPECTF--    
1.1.1.2 ! misho      29: int(32767)
1.1       misho      30: Done

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