Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:35335 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 32674 invoked by uid 1010); 9 Feb 2008 01:47:06 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 32659 invoked from network); 9 Feb 2008 01:47:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Feb 2008 01:47:06 -0000 X-Host-Fingerprint: 24.228.86.142 ool-18e4568e.dyn.optonline.net Received: from [24.228.86.142] ([24.228.86.142:3718] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FB/D7-04488-9160DA74 for ; Fri, 08 Feb 2008 20:47:05 -0500 Message-ID: To: internals@lists.php.net Date: Fri, 08 Feb 2008 20:47:03 -0500 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041206 Thunderbird/1.0 Mnenhy/0.6.0.104 MIME-Version: 1.0 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> <1202488849.12101.6.camel@sbarrow-desktop> In-Reply-To: <1202488849.12101.6.camel@sbarrow-desktop> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Posted-By: 24.228.86.142 Subject: Re: [PHP-DEV] get_magic_quotes_gpc, get-magic-quotes-runtime inhead, get a "final" decision From: edwardzyang@thewritingpot.com ("Edward Z. Yang") 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 Anti-XSS Filter [[ 3FA8 E9A9 7385 B691 A6FC B3CB A933 BE7D 869C 48DA ]]