Annotation of embedaddon/php/Zend/tests/error_reporting02.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: testing @ and error_reporting - 2
! 3: --FILE--
! 4: <?php
! 5:
! 6: error_reporting(E_ALL);
! 7:
! 8: function foo($arg) {
! 9: }
! 10:
! 11: function bar() {
! 12: error_reporting(E_ALL|E_STRICT);
! 13: throw new Exception("test");
! 14: }
! 15:
! 16: try {
! 17: @foo(@bar());
! 18: } catch (Exception $e) {
! 19: }
! 20:
! 21: var_dump(error_reporting());
! 22:
! 23: echo "Done\n";
! 24: ?>
! 25: --EXPECT--
! 26: int(32767)
! 27: Done
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>