1--TEST-- 2Bug #64966 (segfault in zend_do_fcall_common_helper_SPEC) 3--FILE-- 4<?php 5error_reporting(E_ALL); 6set_error_handler(function($error) { throw new Exception(); }, E_RECOVERABLE_ERROR); 7 8function test($func) { 9 $a = $func(""); 10 return true; 11} 12class 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-- 23Fatal error: Uncaught exception 'Exception' in %sbug64966.php:3 24Stack 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 31