Re: set_magic_quotes_runtime is still E_DEPRECATED

From: Date: Tue, 23 Jun 2009 02:36:54 +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-44426@lists.php.net to get a copy of this message
Hi 2009/6/16 Zeev Suraski <zeev@zend.com>: > At 17:00 16/06/2009, 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. > > Why not keep this function then?  We can remove the implementation, for now > - emit E_DEPRECATED in case of true and nothing in case of false;  For 6 - > emit an error for true and nothing for false.  It just looks compatibility > breakage for no good reason. Late timing, but if we want this behaviour then I've written a patch available at: http://pastie.org/521077 Removes the deprecation warnings from magic_quotes_runtime()/set_magic_quotes_runtime(), and only emits one if: magic_quotes_runtime(true); > > Zeev > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > -- regrads, Kalle Sommer Nielsen kalle@php.net

« previous php.internals (#44426) next »