Re: GET/POST array handling (was [PATCH] Deprecate use of stdio)

From: Date: Sun, 04 May 2003 19:19:58 +0000
Subject: Re: GET/POST array handling (was [PATCH] Deprecate use of stdio)
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-1233@lists.php.net to get a copy of this message
On Sun, 4 May 2003, Rasmus Lerdorf wrote: > On Sun, 4 May 2003, Ilia A. wrote: > > On May 4, 2003 02:13 pm, Rasmus Lerdorf wrote: > > > > Now, if we are dealing with arrays another questions comes to mind, if I > > > > have $_POST['abc']['xyz'] = 1 & > > > > $_POST['abc']['xyz] = 2 and I am already > > > > considering merging arrays, why shouldn't my > > > > $_REQUEST['abc']['xyz'] by > > > > array(1,2) ? > > > > > > It should, but right now that doesn't happen. > > > > Would that not present a BC break by itself as well? > > Well, before your patch $_REQUEST worked correctly actually. Oh, never mind, I didn't read that statement of yours correctly. That definitely shouldn't happen. That's no different than having foo=1&foo=2 in your GET data. If you want to turn that into an array you do foo[]=1&foo[]=2. -Rasmus

« previous php.internals (#1233) next »