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