Pierre Joye wrote: > On Tue, Jun 16, 2009 at 12:33 PM, Hannes > Magnusson<hannes.magnus...@gmail.com> wrote: > >>> 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 ? >>> >> And there is the problem. >> The recommended way is: >> if(get_magic_quotes_runtime()) { >> set_magic_quotes_runtime(false); >> } >> >> So, if MQ runtime is enabled - even "Doing The Right Thing" (turning >> it off) will throw deprecated warnings. >> > > And as get_magic_quotes_runtime() always returns FALSE, > set_magic_quotes_runtime(false) will never be called. > > Cheers, > Hannes refers to 5.3. It will work on PHP 6, but on 5.3 it will throw a the warning despite you doing the right thing. I propose the following behavior: "Throw a deprecated warning unless magic quotes are currently enabled and the parameter is to disable them".
-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php