Re: Re: [Discussion] Dots and spaces in GPC variable names

From: Date: Wed, 03 May 2017 10:55:43 +0000
Subject: Re: Re: [Discussion] Dots and spaces in GPC variable names
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-98957@lists.php.net to get a copy of this message
Hi Andrea, On Tue, May 2, 2017 at 11:08 PM, Andrea Faulds <ajf@ajf.me> 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.

« previous php.internals (#98957) next »