diff options
Diffstat (limited to 'Zend/tests/error_reporting04.phpt')
-rw-r--r-- | Zend/tests/error_reporting04.phpt | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Zend/tests/error_reporting04.phpt b/Zend/tests/error_reporting04.phpt new file mode 100644 index 0000000..295a3a4 --- /dev/null +++ b/Zend/tests/error_reporting04.phpt @@ -0,0 +1,23 @@ +--TEST-- +testing @ and error_reporting - 4 +--FILE-- +<?php + +error_reporting(E_ALL); + +function foo() { + echo $undef; + error_reporting(E_ALL|E_STRICT); +} + + +foo(@$var); + +var_dump(error_reporting()); + +echo "Done\n"; +?> +--EXPECTF-- +Notice: Undefined variable: undef in %s on line %d +int(32767) +Done |