> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jani
> Taskinen
> Sent: Thursday, October 02, 2003 4:12 PM
> To: Lukas Smith
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP-DEV] array_merge_recursive
>
>
> AFAIK, this is already fixed in CVS.
> (at least the test script in bug 14990 works fine for me)
Doesnt work for multidimensional arrays though ...
Should I open up a new bug report?
<?php
$array1 = array(
'test1' => 'unclobbered',
'test2' => 'dontclobber',
'test3' => array(
'testarray1' => 'unclobbered2',
'testarray2' => 'dontclobber' )
);
$array2 = array(
'test1' => 'clobbered',
'test3' => array(
'testarray1' => 'clobbered2'
)
);
echo '<pre>';
echo 'phpversion()<br>';
echo phpversion().'<br>';
echo 'php_uname()<br>';
echo php_uname().'<br>';
echo '$array1<br>';
print_r($array1);
echo '$array2<br>';
print_r($array2);
echo 'array_merge_recursive($array1, $array2)<br>';
print_r(array_merge_recursive($array1, $array2));
echo '$array2<br>';
print_r($array2);
echo '</pre>';
?>
regards,
Lukas
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php