1--TEST-- 2Check call to non-ref function with call-time refs 3--FILE-- 4<?php 5function my_errorhandler($errno,$errormsg) { 6 global $my_var; 7 $my_var=0x12345; 8 echo $errormsg."\n"; 9 return true; 10} 11$oldhandler = set_error_handler("my_errorhandler"); 12$my_var = str_repeat("A",64); 13$data = call_user_func_array("substr_replace",array(&$my_var, new StdClass(),1)); 14echo "OK!"; 15--EXPECT-- 16Object of class stdClass could not be converted to string 17Object of class stdClass to string conversion 18OK! 19