catchable_error_001.phpt 423 B

12345678910111213141516171819202122
  1. --TEST--
  2. Catchable fatal error [1]
  3. --FILE--
  4. <?php
  5. class Foo {
  6. }
  7. function blah (Foo $a)
  8. {
  9. }
  10. function error()
  11. {
  12. $a = func_get_args();
  13. var_dump($a);
  14. }
  15. blah (new StdClass);
  16. echo "ALIVE!\n";
  17. ?>
  18. --EXPECTF--
  19. 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