On Tue, Jun 16, 2009 at 12:24, Olivier B.<php-dev.l...@daevel.net> wrote: > Hannes Magnusson a écrit : >> >> On Tue, Jun 16, 2009 at 10:09, Pierre Joye<pierre....@gmail.com> wrote: >> >>> >>> hi, >>> >>> On Tue, Jun 16, 2009 at 9:46 AM, Lukas Kahwe Smith<m...@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 ?
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. -Hannes -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php