Re: set_magic_quotes_runtime is still E_DEPRECATED

From: Date: Tue, 16 Jun 2009 18:49:21 +0000
Subject: Re: set_magic_quotes_runtime is still E_DEPRECATED
References: 1 2 3 4 5 6 7 8 9 10  Groups: php.internals 
Request: Send a blank email to internals+get-44316@lists.php.net to get a copy of this message
On 16.06.2009, at 19:39, Greg Beaver wrote:
Daniel Convissor wrote:
Folks:
I propose the following behavior: "Throw a deprecated warning unless magic quotes are currently enabled and the parameter is to disable them".
The function is going away. A deprecated warning is necessary to alert people of this fact, no matter how the function is used.
I'm sorry, but there is a bug here. On my system, magic_quotes_gpc is enabled by default, and no E_DEPRECATED warning is thrown. Check it out. Compile a vanilla PHP 5.3, and run php -n -i |grep magic It's probably an oversight, but if it is intentional, we can't punish people for disabling something that is enabled by default.
1) its not about "punishing", its about alerting people that they are relying on stuff that will go away 2) E_DEPRECATE is for development only and only as a check you enable now and then 3) its off in both of the php.ini's we will ship with 5.3 regards, Lukas Kahwe Smith mls@pooteeweet.org

« previous php.internals (#44316) next »