On Fri, Jul 6, 2018 at 6:50 AM, Kalle Sommer Nielsen <ka...@php.net> wrote:
> Den tor. 5. jul. 2018 kl. 22.51 skrev Kalle Sommer Nielsen <ka...@php.net > >: > > > > Den tor. 5. jul. 2018 kl. 22.46 skrev Nikita Popov <nikita....@gmail.com > >: > > > Sounds reasonable to me. My only question would be when we would start > emitting the deprecation notice. I'm not a fan of deprecating things in the > same release as the alternative is introduced, so I would suggest to add > the new alias in PHP 7.3 and perform the deprecation in PHP 7.4. > > > > I agree here, I don't think a simple constant would hurt too much to > > add outside the scope of this RFC so I will go ahead and do soonish > > that if no one else objects. Then we can move the section to the 7.4 > > Deprecation WIP RFC. > > I wrote a quick patch[1] for this (look away from the deprecation > warning), which basically adds a new alias 'add_slashes', this seemed > like the easiest way to go about it. While looking into ext/filter it > seems there are no implementations for INPUT_SESSION and > INPUT_REQUEST. I doubt there is any intention to implement these so > they could be potentials for adding a deprecation for (or simply > removal as they just yield an E_WARNING when used anyway)[2]. > > > [1] https://gist.github.com/KalleZ/cce52f230d599501373b15729ec85bfc > [2] https://git.php.net/?p=php-src.git;a=blob;f=ext/filter/filter.c;h= > 56c93199f0bf4f713eeb81c0dfddb910b02b9618;hb=HEAD#l547 > I assume that we're going forward with the addition of the alias, so I moved the FILTER_SANITIZE_MAGIC_QUOTES deprecation from the PHP 7.3 to the PHP 7.4 deprecations RFC. I'll start the vote on this RFC (and the case-insensitive constants RFC) tomorrow, with a duration of one week. I was holding off on these votes because earlier comments in the typed references RFC thread made it appear like a change to the release schedule was imminent, but as the RMs haven't made a final decision yet and I can't hold off these votes further, I'll have to keep them within the current schedule Nikita