Re: array_merge php4 cvs

From: Date: Fri, 07 Jan 2000 23:30:10 +0000
Subject: Re: array_merge php4 cvs
References: 1 2 3 4  Groups: php.dev 
Request: Send a blank email to php-dev+get-14374@lists.php.net to get a copy of this message
suppose i have a global GET variable called gg with value 2; $a = array(); $a = array_merge($a,$GLOBALS['HTTP_GET_VARS']); print($GLOBALS['gg']); $a['gg'] = 3; print($GLOBALS['gg']); the first print return 2.. the second return 3.. instead of 2. ----- Original Message ----- From: "Andrei Zmievski" <andrei@ispi.net> To: "Stefano Bagnara" <bago@datasail.net> Cc: <php-dev@lists.php.net> Sent: Friday, January 07, 2000 8:41 PM Subject: Re: [PHP-DEV] array_merge php4 cvs > On Fri, 07 Jan 2000, Stefano Bagnara wrote: > > it seem that array_merge copies the referrer to the array elements instead > > of the values! > > it seem a bug introduced with the Ex API > > What do you mean exactly? > > -Andrei > * Anything will fit if you push hard enough * >

« previous php.dev (#14374) next »