1--TEST-- 2Bug #55339 (Segfault with allow_call_time_pass_reference = Off) 3--INI-- 4allow_call_time_pass_reference=off 5--FILE-- 6<?php 7function error_handler($errno, $errstr, $errfile, $errline) { 8 eval(';'); 9} 10 11set_error_handler('error_handler'); 12 13eval(<<<'EOF' 14function foo() 15{ 16 $array = array(); 17 foreach ($array as $key => $value) { 18 bar($key, &$value); 19 } 20} 21 22function bar() 23{ 24 25} 26EOF 27); 28 29echo "OK\n"; 30--EXPECT-- 31OK 32