mirror of
https://github.com/php/php-src.git
synced 2024-10-20 07:53:58 +00:00
23 lines
423 B
Plaintext
23 lines
423 B
Plaintext
|
--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--
|
||
|
Catchable fatal error: Argument 1 passed to blah() must be an instance of Foo, instance of stdClass given, called in %scatchable_error_001.php on line 15 and defined in %scatchable_error_001.php on line 5
|