Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:99042 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 39122 invoked from network); 15 May 2017 13:55:22 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 May 2017 13:55:22 -0000 Authentication-Results: pb1.pair.com smtp.mail=lauri.kentta@gmail.com; spf=softfail; sender-id=softfail Authentication-Results: pb1.pair.com header.from=lauri.kentta@gmail.com; sender-id=softfail Received-SPF: softfail (pb1.pair.com: domain gmail.com does not designate 178.62.210.197 as permitted sender) X-PHP-List-Original-Sender: lauri.kentta@gmail.com X-Host-Fingerprint: 178.62.210.197 k-piste.fi Received: from [178.62.210.197] ([178.62.210.197:46366] helo=k-piste.fi) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0E/A9-15531-943B9195 for ; Mon, 15 May 2017 09:55:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=k-piste.fi; s=2017-04-09; h=Message-ID:References:In-Reply-To:Subject:Cc:To:From:Date: Content-Transfer-Encoding:Content-Type:MIME-Version:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=iUYK5DJDwywqYblaEHL/RFqNa1Rj8iwqQcsVSzMFHnw=; b=ZSNEdYmK0bOxk+JScpozaAHb4t pbaBUh19zpYBJTofBy+5C4yFz2V/SD6SVHrNUitZHtgiBeCps3A7MB5w8VBW+AT2wtHQa5grshQM3 NllSLhS1D3uuSrbkaaoB+LglIeV7334DfFqPyyndH4in8oOWmhVPVBHmuc+G5Ne6crP3zoUFtPAcw 4/pKr19uPki21bcaWfr8iyLEIPVqikVMh3qW4DK2aF84c0x5GpXgdQWBP0uTuoUg/HyZ8RgfCV2ui Ue20nqiwFmpgb2IcSs1MjitAVqTfH+AyWklk4JnXG86Pq++M1JjnSDuNZMTF4bs05uInUpUOqA9wC nU9cPx9w==; Received: from localhost.localdomain ([::1] helo=k-piste.fi) by k-piste.fi with esmtp (Exim 4.89) (envelope-from ) id 1dAGSz-0006JR-H0; Mon, 15 May 2017 16:55:17 +0300 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Mon, 15 May 2017 16:55:17 +0300 To: Andrey Andreev Cc: Andrea Faulds , internals@lists.php.net In-Reply-To: References: <57.2B.02776.537E8095@pb1.pair.com> Message-ID: X-Sender: lauri.kentta@gmail.com User-Agent: Roundcube Webmail/1.2.5 X-Spam-Score: 0 Subject: Re: [PHP-DEV] Re: [Discussion] Dots and spaces in GPC variable names From: lauri.kentta@gmail.com (=?UTF-8?Q?Lauri_Kentt=C3=A4?=) On 2017-05-03 13:55, Andrey Andreev wrote: > Hi Andrea, > > On Tue, May 2, 2017 at 11:08 PM, Andrea Faulds wrote: >> Hey Andrey, >> >> Andrey Andreev wrote: >>> >>> I'm not surprised by the suggestion for targeting 8.0, but perhaps we >>> could think of a way to conditionally disable the mangling in 7.x and >>> then remove it entirely in 8? >>> I hate to say INI directives, but that's surely one way for a >>> smoother >>> transition. >> >> >> Another approach I'd previously thought of was to keep in memory >> whatever >> information would be needed to undo the mangling process for the >> superglobals, and provide a function which would undo it. Then in 8.x >> it >> could become a no-op. >> > > Sounds hacky to me. Plus, a function call means we can't have > environments that do it by default pre-8.0, and that in turn means a > harder migration. > But hey, as long as we get rid of the mangling, I wouldn't really care > that much! :) > > Cheers, > Andrey. Someone has to say this ;), so: Why not a new API? You could provide access to parameters with same name instead of overwriting the existing; consider a=0&a[]=1&a[0]=2&a=3, where each part overwrites the previous one and the result is a=3. You could provide support for JSON input. You could create all kinds of crazy bloat. -- Lauri Kenttä