php-src/Zend/tests/error_reporting01.phpt

27 lines
296 B
Plaintext
Raw Normal View History

2005-09-23 09:39:29 +00:00
--TEST--
testing @ and error_reporting - 1
--FILE--
<?php
2006-03-16 12:12:31 +00:00
error_reporting(E_ALL & ~E_STRICT);
2005-09-23 09:39:29 +00:00
function foo($arg) {
}
function bar() {
throw new Exception("test");
}
try {
@foo(@bar());
} catch (Exception $e) {
}
var_dump(error_reporting());
echo "Done\n";
?>
--EXPECT--
int(14335)
2005-09-23 09:39:29 +00:00
Done