Annotation of embedaddon/php/Zend/tests/error_reporting10.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: testing @ and error_reporting - 10
! 3: --FILE--
! 4: <?php
! 5:
! 6: error_reporting(E_ALL);
! 7:
! 8: function make_exception()
! 9: {
! 10: @$blah;
! 11: str_replace();
! 12: error_reporting(0);
! 13: throw new Exception();
! 14: }
! 15:
! 16: try {
! 17: @make_exception();
! 18: } catch (Exception $e) {}
! 19:
! 20: var_dump(error_reporting());
! 21:
! 22: error_reporting(E_ALL&~E_NOTICE);
! 23:
! 24: try {
! 25: @make_exception();
! 26: } catch (Exception $e) {}
! 27:
! 28: var_dump(error_reporting());
! 29:
! 30: echo "Done\n";
! 31: ?>
! 32: --EXPECTF--
! 33: int(30719)
! 34: int(30711)
! 35: Done
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>