bug64966.phpt 547 B

1234567891011121314151617181920212223242526272829
  1. --TEST--
  2. Bug #64966 (segfault in zend_do_fcall_common_helper_SPEC)
  3. --FILE--
  4. <?php
  5. function test($func) {
  6. try {
  7. $a = $func("");
  8. } catch (Error $e) {
  9. throw new Exception();
  10. }
  11. return true;
  12. }
  13. class A {
  14. public function b() {
  15. test("strlen");
  16. test("iterator_apply");
  17. }
  18. }
  19. $a = new A();
  20. $a->b();
  21. ?>
  22. --EXPECTF--
  23. Fatal error: Uncaught Exception in %sbug64966.php:6
  24. Stack trace:
  25. #0 %sbug64966.php(13): test('iterator_apply')
  26. #1 %sbug64966.php(18): A->b()
  27. #2 {main}
  28. thrown in %sbug64966.php on line 6