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

From: Date: Sat, 09 Feb 2008 01:47:03 +0000
Subject: Re: get_magic_quotes_gpc, get-magic-quotes-runtime inhead, get a "final" decision
References: 1 2 3 4 5 6 7 8 9 10  Groups: php.internals 
Request: Send a blank email to internals+get-35335@lists.php.net to get a copy of this message
Sam Barrow wrote: > Or use a compatibility function. I use this one: > > if (version_compare(phpversion(), $version) === 6) { > function get_magic_quotes_gpc() { > return false; > } > } Ehh, I don't understand: how does that code work at all? (unless version_compare() changed behavior, it should only ever return +1, 0 or -1)... -- Edward Z. Yang GnuPG: 0x869C48DA HTML Purifier <http://htmlpurifier.org> Anti-XSS Filter [[ 3FA8 E9A9 7385 B691 A6FC B3CB A933 BE7D 869C 48DA ]]

« previous php.internals (#35335) next »