Re: get_magic_quotes_gpc, get-magic-quotes-runtime in head, get a "final" decision

From: Date: Fri, 08 Feb 2008 16:40:49 +0000
Subject: Re: get_magic_quotes_gpc, get-magic-quotes-runtime in head, get a "final" decision
References: 1 2 3 4 5 6 7 8 9  Groups: php.internals 
Request: Send a blank email to internals+get-35331@lists.php.net to get a copy of this message
On Fri, 2008-02-08 at 10:42 -0600, Brian Moon wrote: > Richard Quadling wrote: > > Aren't some things just worth the BC break? > > > > Having never used them, I can quite happily say bomb the bastards! > > Agreed. For Phorum will just change our code from: > > if ( get_magic_quotes_gpc() ) { > > to: > > if ( function_exists(get_magic_quotes_gpc) && get_magic_quotes_gpc() ) { Or use a compatibility function. I use this one: if (version_compare(phpversion(), $version) === 6) { function get_magic_quotes_gpc() { return false; } } That code can easily be thrown into an application, and will have full compatibility. > > So, I guess I am +1 > > -- > > Brian Moon > Senior Developer/Engineer > ------------------------------ > When you care enough to spend the very least. > http://dealnews.com/ >

« previous php.internals (#35331) next »