Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:54543 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 55411 invoked from network); 12 Aug 2011 15:26:20 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Aug 2011 15:26:20 -0000 Authentication-Results: pb1.pair.com header.from=tyra3l@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=tyra3l@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.83.42 as permitted sender) X-PHP-List-Original-Sender: tyra3l@gmail.com X-Host-Fingerprint: 74.125.83.42 mail-gw0-f42.google.com Received: from [74.125.83.42] ([74.125.83.42:39797] helo=mail-gw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A7/53-40016-A16454E4 for ; Fri, 12 Aug 2011 11:26:19 -0400 Received: by gwb17 with SMTP id 17so2311746gwb.29 for ; Fri, 12 Aug 2011 08:26:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=srno5PaaPplYmBygn/Uof2FGdUOs4+nxCyf260nnfnY=; b=RRWNYYhRdWZ1OdmB7sYOHItzilAh80h2iEpy3+VmfAR+peuMG8ighAUFo/ON0Fsoza pQqqN9hwZDOyVaKaJ1e9im8zJ/1Kw+MtUAKVbX7CaPzhlxYabZ5E1e4uQIhg/CIrDVE9 APqIq8j89oRwoJJCKMruLzUY+opOVA0khLpig= MIME-Version: 1.0 Received: by 10.236.125.225 with SMTP id z61mr3266516yhh.194.1313162776306; Fri, 12 Aug 2011 08:26:16 -0700 (PDT) Received: by 10.146.168.9 with HTTP; Fri, 12 Aug 2011 08:26:16 -0700 (PDT) In-Reply-To: <1313159473.2648.11.camel@guybrush> References: <1313159473.2648.11.camel@guybrush> Date: Fri, 12 Aug 2011 17:26:16 +0200 Message-ID: To: =?UTF-8?Q?Johannes_Schl=C3=BCter?= Cc: Derick Rethans , Laruence , PHP Internals Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] behavior of translating dot in the query variable name into underscore character From: tyra3l@gmail.com (Ferenc Kovacs) 2011/8/12 Johannes Schl=C3=BCter : > Hi, > > On Fri, 2011-08-12 at 15:48 +0200, Ferenc Kovacs wrote: >> if we would both provide the foo_bar and foo.bar: >> >> - if your code expects foo.bar to be foo_bar, it's there. >> - if you expect foo.bar, it's also fine. >> - if you did a workaround in the past (parse the query string >> manually), that would also work, in the worst case, you would >> overwrite the foo.bar with the same value. > > ... and we make it complicated for everybody iterating over the array to > do some work on all elements. > please explain! your foreach would work exactly in the same way. your logic would only break, if you blow up on unexpected request variables, which is much less frequent usecase imo. (as I mentioned maybe for some really strict request validation) --=20 Ferenc Kov=C3=A1cs @Tyr43l - http://tyrael.hu