You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
547 B

21 years ago
  1. --TEST--
  2. Catchable fatal error [2]
  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. set_error_handler('error');
  16. blah (new StdClass);
  17. echo "ALIVE!\n";
  18. ?>
  19. --EXPECTF--
  20. array(5) {
  21. [0]=>
  22. int(4096)
  23. [1]=>
  24. unicode(%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"
  25. [2]=>
  26. unicode(%d) "%scatchable_error_002.php"
  27. [3]=>
  28. int(5)
  29. [4]=>
  30. array(0) {
  31. }
  32. }
  33. ALIVE!