bug72085.phpt 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. --TEST--
  2. Bug #72085 (SEGV on unknown address zif_xml_parse)
  3. --SKIPIF--
  4. <?php
  5. if (!extension_loaded('xml')) die('skip xml extension not available');
  6. ?>
  7. --FILE--
  8. <?php
  9. $var1 = xml_parser_create_ns();
  10. xml_set_element_handler($var1, new Exception(""), 4096);
  11. xml_parse($var1, str_repeat("<a>", 10));
  12. ?>
  13. ===DONE===
  14. --EXPECTF--
  15. Warning: Invalid callback exception 'Exception' in %s%ebug72085.php:%d
  16. Stack trace:
  17. #0 {main}, no array or string given in %s%ebug72085.php on line %d
  18. Warning: xml_parse(): Unable to call handler in %s%ebug72085.php on line %d
  19. Warning: Invalid callback exception 'Exception' in %s%ebug72085.php:%d
  20. Stack trace:
  21. #0 {main}, no array or string given in %s%ebug72085.php on line %d
  22. Warning: xml_parse(): Unable to call handler in %s%ebug72085.php on line %d
  23. Warning: Invalid callback exception 'Exception' in %s%ebug72085.php:%d
  24. Stack trace:
  25. #0 {main}, no array or string given in %s%ebug72085.php on line %d
  26. Warning: xml_parse(): Unable to call handler in %s%ebug72085.php on line %d
  27. Warning: Invalid callback exception 'Exception' in %s%ebug72085.php:%d
  28. Stack trace:
  29. #0 {main}, no array or string given in %s%ebug72085.php on line %d
  30. Warning: xml_parse(): Unable to call handler in %s%ebug72085.php on line %d
  31. Warning: Invalid callback exception 'Exception' in %s%ebug72085.php:%d
  32. Stack trace:
  33. #0 {main}, no array or string given in %s%ebug72085.php on line %d
  34. Warning: xml_parse(): Unable to call handler in %s%ebug72085.php on line %d
  35. Warning: Invalid callback exception 'Exception' in %s%ebug72085.php:%d
  36. Stack trace:
  37. #0 {main}, no array or string given in %s%ebug72085.php on line %d
  38. Warning: xml_parse(): Unable to call handler in %s%ebug72085.php on line %d
  39. Warning: Invalid callback exception 'Exception' in %s%ebug72085.php:%d
  40. Stack trace:
  41. #0 {main}, no array or string given in %s%ebug72085.php on line %d
  42. Warning: xml_parse(): Unable to call handler in %s%ebug72085.php on line %d
  43. Warning: Invalid callback exception 'Exception' in %s%ebug72085.php:%d
  44. Stack trace:
  45. #0 {main}, no array or string given in %s%ebug72085.php on line %d
  46. Warning: xml_parse(): Unable to call handler in %s%ebug72085.php on line %d
  47. Warning: Invalid callback exception 'Exception' in %s%ebug72085.php:%d
  48. Stack trace:
  49. #0 {main}, no array or string given in %s%ebug72085.php on line %d
  50. Warning: xml_parse(): Unable to call handler in %s%ebug72085.php on line %d
  51. Warning: Invalid callback exception 'Exception' in %s%ebug72085.php:%d
  52. Stack trace:
  53. #0 {main}, no array or string given in %s%ebug72085.php on line %d
  54. Warning: xml_parse(): Unable to call handler in %s%ebug72085.php on line %d
  55. ===DONE===