Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:35331 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 23648 invoked by uid 1010); 8 Feb 2008 16:47:33 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 23632 invoked from network); 8 Feb 2008 16:47:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Feb 2008 16:47:33 -0000 Authentication-Results: pb1.pair.com smtp.mail=sam@sambarrow.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=sam@sambarrow.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain sambarrow.com from 205.234.132.11 cause and error) X-PHP-List-Original-Sender: sam@sambarrow.com X-Host-Fingerprint: 205.234.132.11 scottsdale.servershost.net Received: from [205.234.132.11] ([205.234.132.11:49944] helo=scottsdale.servershost.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 97/75-04488-2A78CA74 for ; Fri, 08 Feb 2008 11:47:32 -0500 Received: from [98.172.154.66] (port=42725 helo=[10.200.100.14]) by scottsdale.servershost.net with esmtpsa (SSLv3:RC4-MD5:128) (Exim 4.68) (envelope-from ) id 1JNWNt-00077l-B3; Fri, 08 Feb 2008 10:47:29 -0600 To: Brian Moon Cc: internals@lists.php.net In-Reply-To: <47AC8662.3020809@dealnews.com> References: <200802072332.01301.larry@garfieldtech.com> <1202473072.4246.4.camel@localhost.localdomain> <35628.195.22.180.233.1202473591.nsm@avilys.eik.lt> <10845a340802080807g60af2384t408e04a7b5c6d2d3@mail.gmail.com> <47AC8662.3020809@dealnews.com> Content-Type: text/plain Date: Fri, 08 Feb 2008 11:40:49 -0500 Message-ID: <1202488849.12101.6.camel@sbarrow-desktop> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 Content-Transfer-Encoding: 7bit X-Antivirus-Scanner: Clean mail though you should still use an Antivirus X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - scottsdale.servershost.net X-AntiAbuse: Original Domain - lists.php.net X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - sambarrow.com X-Source: X-Source-Args: X-Source-Dir: Subject: Re: [PHP-DEV] get_magic_quotes_gpc, get-magic-quotes-runtime in head, get a "final" decision From: sam@sambarrow.com (Sam Barrow) 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/ >