#46765 [Opn->Csd]: array_merge documentation incorrectly states that "arrays will be preserved"

From: Date: Fri, 28 Aug 2009 08:34:28 +0000
Subject: #46765 [Opn->Csd]: array_merge documentation incorrectly states that "arrays will be preserved"
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-2680@lists.php.net to get a copy of this message
ID: 46765 Updated by: torben@php.net Reported By: charonme at yahoo dot com -Status: Open +Status: Closed Bug Type: Documentation problem PHP Version: Irrelevant New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. Previous Comments: ------------------------------------------------------------------------ [2009-08-28 08:34:05] svn@php.net Automatic comment from SVN on behalf of torben Revision: http://svn.php.net/viewvc/?view=revision&revision=287831 Log: Fixed an old incorrect description of array union. Addresses bug #46765. ------------------------------------------------------------------------ [2008-12-05 14:29:58] charonme at yahoo dot com Description: ------------ Related bug: http://bugs.php.net/bug.php?id=42323 array_merge documentation states: "If you want to completely preserve the arrays and just want to append them to each other (not overwriting the previous keys), use the + operator" However, both arrays (plural) are not preserved, only the first array (singular) is preserved and the second array is NOT preserved if there are some keys that are already defined in the first array. The documentation needs to be clear enough to state that the second array might not be preserved at all even though the first array (singular) will always be preserved. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=46765&edit=1

« previous php.doc.bugs (#2680) next »