Annotation of embedaddon/php/Zend/tests/error_reporting09.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: testing @ and error_reporting - 9
3: --FILE--
4: <?php
5:
6: error_reporting(E_ALL);
7:
8: function bar() {
9: echo @$blah;
10: echo $undef2;
11: }
12:
13: function foo() {
14: echo @$undef;
15: error_reporting(E_ALL|E_STRICT);
16: echo $blah;
17: return bar();
18: }
19:
20: @foo();
21:
22: var_dump(error_reporting());
23:
24: echo "Done\n";
25: ?>
26: --EXPECTF--
27: Notice: Undefined variable: blah in %s on line %d
28:
29: Notice: Undefined variable: undef2 in %s on line %d
30: int(32767)
31: Done
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>