From: sprice at wisc dot edu
Operating system: OS X 10.2.6
PHP version: 4.3.3
PHP Bug Type: Unknown/Other Function
Bug description: call_user_func_array corrupts the passed array

call_user_func_array seems to corrupt the array that is
passed to the user function through it.

If an array of two strings are passed, and you try to
print $strings[0] you get the first letter of the first
element. If you try to print $strings[1] you get the
2nd letter of the first element.

Reproduce code:
function test($testing){
echo $testing[1];

$array = array('im testing', 'hello?');

call_user_func_array('test', $array);
echo "\n";
echo $array[1];

Expected result:

Actual result:

Edit bug report at [url][/url]
Try a CVS snapshot (php4): [url][/url]
Try a CVS snapshot (php5): [url][/url]
Fixed in CVS: [url][/url]
Fixed in release: [url][/url]
Need backtrace: [url][/url]
Try newer version: [url][/url]
Not developer issue: [url][/url]
Expected behavior: [url][/url]
Not enough info: [url][/url]
Submitted twice: [url][/url]
register_globals: [url][/url]
PHP 3 support discontinued: [url][/url]
Daylight Savings: [url][/url]
IIS Stability: [url][/url]
Install GNU Sed: [url][/url]