diff options
Diffstat (limited to 'Zend/tests/error_reporting03.phpt')
-rw-r--r-- | Zend/tests/error_reporting03.phpt | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/Zend/tests/error_reporting03.phpt b/Zend/tests/error_reporting03.phpt new file mode 100644 index 0000000..3c6595c --- /dev/null +++ b/Zend/tests/error_reporting03.phpt @@ -0,0 +1,35 @@ +--TEST-- +testing @ and error_reporting - 3 +--FILE-- +<?php + +error_reporting(E_ALL); + +function foo($arg) { + echo @$nonex_foo; +} + +function bar() { + echo @$nonex_bar; + throw new Exception("test"); +} + +function foo1() { + echo $undef1; + error_reporting(E_ALL|E_STRICT); + echo $undef2; +} + +try { + @foo(@bar(@foo1())); +} catch (Exception $e) { +} + +var_dump(error_reporting()); + +echo "Done\n"; +?> +--EXPECTF-- +Notice: Undefined variable: undef2 in %s on line %d +int(32767) +Done |