php-src/Zend/tests/error_reporting06.phpt

31 lines
342 B
Plaintext
Raw Normal View History

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