php-src/Zend/tests/error_reporting06.phpt

31 lines
342 B
Plaintext
Raw Normal View History

2005-09-23 09:39:00 +00:00
--TEST--
testing @ and error_reporting - 6
--FILE--
<?php
error_reporting(E_ALL);
2018-09-16 17:16:42 +00:00
2005-09-23 09:39:00 +00:00
function foo1($arg) {
}
function foo2($arg) {
}
function foo3() {
2020-02-03 21:52:20 +00:00
echo $undef3;
throw new Exception("test");
2005-09-23 09:39:00 +00:00
}
try {
2020-02-03 21:52:20 +00:00
@foo1(@foo2(@foo3()));
2005-09-23 09:39:00 +00:00
} catch (Exception $e) {
}
var_dump(error_reporting());
echo "Done\n";
?>
2018-09-16 17:16:42 +00:00
--EXPECT--
2011-07-31 18:51:15 +00:00
int(32767)
2005-09-23 09:39:00 +00:00
Done