Re: set_magic_quotes_runtime is still E_DEPRECATED

From: Date: Tue, 16 Jun 2009 10:24:29 +0000
Subject: Re: set_magic_quotes_runtime is still E_DEPRECATED
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-44300@lists.php.net to get a copy of this message
Hannes Magnusson a écrit :
On Tue, Jun 16, 2009 at 10:09, Pierre Joye<pierre.php@gmail.com> wrote:
hi, On Tue, Jun 16, 2009 at 9:46 AM, Lukas Kahwe Smith<mls@pooteeweet.org> wrote:
    
On 16.06.2009, at 05:08, Greg Beaver wrote:
      
Hi,
in PHP_5_3 if you're using set_magic_quotes_runtime(0), it raises an E_DEPRECATED. I thought all that argument was resolved to only throw E_DEPRECATED for set_magic_quotes_runtime(1)? This is a major pain if magic_quotes are enabled and you need to turn them off to do unserialize or serialize to a file.
        
I think it makes sense to keep the deprecate warning for the setter. Even to disable MQ runtime? I don't know.. Since MQ is deprecated why are we throwing warnings when people are trying to turn it off? -Hannes Because in PHP 6 (or next) the function "set_magic_quotes_runtime()" will be removed, so calling it without checking ini_get() will trigger a fatal error, no ? Olivier

« previous php.internals (#44300) next »