1--TEST--
2Catchable fatal error [2]
3--FILE--
4<?php
5	class Foo {
6	}
7
8	function blah (Foo $a)
9	{
10	}
11
12	function error()
13	{
14		$a = func_get_args();
15		var_dump($a);
16	}
17
18	set_error_handler('error');
19
20	blah (new StdClass);
21	echo "ALIVE!\n";
22?>
23--EXPECTF--
24array(5) {
25  [0]=>
26  int(4096)
27  [1]=>
28  string(%d) "Argument 1 passed to blah() must be an instance of Foo, instance of stdClass given, called in %scatchable_error_002.php on line %d and defined"
29  [2]=>
30  string(%d) "%scatchable_error_002.php"
31  [3]=>
32  int(5)
33  [4]=>
34  array(0) {
35  }
36}
37ALIVE!
38