1--TEST--
2Crash when function parameter modified via unexpected reference
3--FILE--
4<?php
5function my_errorhandler($errno,$errormsg) {
6  global $my_var;
7  $my_var = 0;
8  return true;
9}
10set_error_handler("my_errorhandler");
11$my_var = str_repeat("A",64);
12$data = call_user_func_array("explode",array(new StdClass(), &$my_var));
13$my_var=array(1,2,3);
14$data = call_user_func_array("implode",array(&$my_var, new StdClass()));
15echo "Done.\n";
16?>
17--EXPECT--
18Done.
19