bug48228.phpt 440 B

12345678910111213141516171819202122232425262728293031
  1. --TEST--
  2. Bug #48228 (crash when exception is thrown while passing function arguments)
  3. --FILE--
  4. <?php
  5. function do_throw() {
  6. throw new Exception();
  7. }
  8. class aa
  9. {
  10. function check()
  11. {
  12. }
  13. function dosome()
  14. {
  15. $this->check(do_throw());
  16. }
  17. }
  18. $l_aa=new aa();
  19. $l_aa->dosome();
  20. ?>
  21. --EXPECTF--
  22. Fatal error: Uncaught Exception in %s
  23. Stack trace:
  24. #0 %s(%d): do_throw()
  25. #1 %s(%d): aa->dosome()
  26. #2 {main}
  27. thrown in %s