array_merge_recursive

php.internals

Lukas Smith

22 years ago
Hi, it seems this bug is now back in action: http://bugs.php.net/bug.php?id=14990 Here is a patch my intern wrote: http://www.backendmedia.com/php_patches/array_merge_rec.patch However maybe the original patch that andrei commited was just lost somehow? regards, Lukas Smith smith@backendmedia.com _______________________________ BackendMedia www.backendmedia.com berlin@backendmedia.com Linn Zwoch Smith GbR Pariser Str. 44 D-10707 Berlin Tel +49 30 83 22 50 00 Fax +49 30 83 22 50 07

Jani Taskinen

22 years ago
AFAIK, this is already fixed in CVS. (at least the test script in bug 14990 works fine for me) --Jani On Thu, 2 Oct 2003, Lukas Smith wrote:

Lukas Smith

22 years ago
> From: jani@netphobia.fi [mailto:jani@netphobia.fi] On Behalf Of Jani > Taskinen > Sent: Thursday, October 02, 2003 4:12 PM > To: Lukas Smith > Cc: internals@lists.php.net > 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