php-src/tests/lang/catchable_error_001.phpt

23 lines
395 B
Plaintext
Raw Normal View History

2005-09-15 16:20:06 +00:00
--TEST--
Catchable fatal error [1]
--FILE--
<?php
class Foo {
}
function blah (Foo $a)
{
}
function error()
{
$a = func_get_args();
var_dump($a);
}
blah (new StdClass);
echo "ALIVE!\n";
?>
--EXPECTF--
2005-09-16 15:24:50 +00:00
Catchable fatal error: Argument 1 passed to blah() must be an instance of Foo, called in %scatchable_error_001.php on line 15 and defined in %scatchable_error_001.php on line 5