Annotation of embedaddon/php/Zend/tests/bug64966.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Bug #64966 (segfault in zend_do_fcall_common_helper_SPEC)
! 3: --FILE--
! 4: <?php
! 5: error_reporting(E_ALL);
! 6: set_error_handler(function($error) { throw new Exception(); }, E_RECOVERABLE_ERROR);
! 7:
! 8: function test($func) {
! 9: $a = $func("");
! 10: return true;
! 11: }
! 12: class A {
! 13: public function b() {
! 14: test("strlen");
! 15: test("iterator_apply");
! 16: }
! 17: }
! 18:
! 19: $a = new A();
! 20: $a->b();
! 21: ?>
! 22: --EXPECTF--
! 23: Fatal error: Uncaught exception 'Exception' in %sbug64966.php:3
! 24: Stack trace:
! 25: #0 [internal function]: {closure}(4096, 'Argument 1 pass...', '%s', 6, Array)
! 26: #1 %sbug64966.php(6): iterator_apply('')
! 27: #2 %sbug64966.php(12): test('iterator_apply')
! 28: #3 %sbug64966.php(17): A->b()
! 29: #4 {main}
! 30: thrown in %sbug64966.php on line 3
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>