Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:46915 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 32105 invoked from network); 31 Jan 2010 16:12:17 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 Jan 2010 16:12:17 -0000 Authentication-Results: pb1.pair.com header.from=nrixham@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=nrixham@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.219.218 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: nrixham@gmail.com X-Host-Fingerprint: 209.85.219.218 mail-ew0-f218.google.com Received: from [209.85.219.218] ([209.85.219.218:34275] helo=mail-ew0-f218.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 96/27-50434-0EBA56B4 for ; Sun, 31 Jan 2010 11:12:17 -0500 Received: by ewy10 with SMTP id 10so1839678ewy.11 for ; Sun, 31 Jan 2010 08:12:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=pDOaGx5daruezqWRHDC1br5uPUl7y4RrcxQy/y0vCt0=; b=ParveTdUz748XLgka+Uk1cY7Mcz0UhL25vdYHdPVU8sn9MG9sk1IC0McUfoqMwlr1n jLUMJXrBQYHIsAO4I361Qyf0xDJP8SW7AUd8aoWQqQYeOLN43TjVjXUbbpFAP6Q7AF/L SfDOgDoiMj729S81QCzYF9/Gjs3OhvaCtdmWk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=YhgAJfOQlBP+bBN1Lmr8rnhFD+PEPKs+OAsAq9tGnxm/Ws15LdAgpetSGCOCgjg2Yq OSx1o9uBKbjq01EyJpqn3HY8F0eeN0gRup169bxtSMiiFiqm3uyV7+u9szl9pCgWkfNj 1Kf4st25lKzD9EtUZ5Ev2FoUxgBfBoPgt9U/U= Received: by 10.213.41.3 with SMTP id m3mr3377422ebe.39.1264954333651; Sun, 31 Jan 2010 08:12:13 -0800 (PST) Received: from ?192.168.1.65? (host81-152-133-92.range81-152.btcentralplus.com [81.152.133.92]) by mx.google.com with ESMTPS id 16sm2978256ewy.6.2010.01.31.08.12.10 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 31 Jan 2010 08:12:11 -0800 (PST) Message-ID: <4B65AB73.9020503@gmail.com> Date: Sun, 31 Jan 2010 16:10:27 +0000 User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: Richard Lynch CC: Dave Ingram , internals@lists.php.net References: <3392.98.193.1264087265.squirrel@www.l-i-e.com> <4B58805C.8060004@dmi.me.uk> <3344.98.193.1264918302.squirrel@www.l-i-e.com> In-Reply-To: <3344.98.193.1264918302.squirrel@www.l-i-e.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Dots and spaces in variable names are converted to underscores. From: nrixham@gmail.com (Nathan Rixham) Richard Lynch wrote: > I have taken the liberty of making an RFC for this: > http://wiki.php.net/rfc/url_dots > > Feel free to add/edit it as fit, particularly since it's my first use > of that RFC wiki, and I'm not good at wiki markup, and I probably > missed something from this thread. > > I intentionally left out the ?a_b=1&a.b=2 because that seemed to me to > be beyond the scope, since ?a_b=1&a_b=2 is equally problematic in > PHP... > > That said, I am now leaning towards not trying to be BC, and just > dropping 'a_b' entirely. > > It seems unlikely that anybody doing anything "sane" to attempt to > reconstruct their original keys is going to be hurt by PHP not messing > them up anymore. > > Most likely, their revisionary code is simply not going to find any > 'a_b' to blindly revert to 'a.b' anymore, and the 'a.b' is going to > just sail through. > > Of course, their a.b might be a^b or a*b or whatever, but whatever it > is, PHP not messing it up will just mean their code won't find > anything to "un-do" any more. > > I did think of one other issue though: > > There may be some really funky character that is valid in the URL, but > that is not kosher for an array/hash key which is currently being > masked... > > It would still have to be masked if such a character exists... > > I can't think of any such character, but what with i18n of DNS records > and whatnot these days, I am woefully ignorant of what might be in the > keys. > > I put that into the RFC already. > Thanks Richard, I was struggling to get to time to write this up - all seems fine to me and just as discussed on-list. Thanks again, Nathan