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 ]] -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php