Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:37844 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 32257 invoked from network); 24 May 2008 02:03:27 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 May 2008 02:03:27 -0000 Authentication-Results: pb1.pair.com header.from=rasmus@lerdorf.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=rasmus@lerdorf.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lerdorf.com from 204.11.219.139 cause and error) X-PHP-List-Original-Sender: rasmus@lerdorf.com X-Host-Fingerprint: 204.11.219.139 mail.lerdorf.com Received: from [204.11.219.139] ([204.11.219.139:49952] helo=mail.lerdorf.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 46/60-28631-E6777384 for ; Fri, 23 May 2008 22:03:27 -0400 Received: from [192.168.200.148] (c-24-6-219-206.hsd1.ca.comcast.net [24.6.219.206]) (authenticated bits=0) by mail.lerdorf.com (8.14.3/8.14.3/Debian-4) with ESMTP id m4O23MJT018574; Fri, 23 May 2008 19:03:22 -0700 Message-ID: <4837776A.1080609@lerdorf.com> Date: Fri, 23 May 2008 19:03:22 -0700 User-Agent: Thunderbird 2.0.0.4 (Macintosh/20070604) MIME-Version: 1.0 To: Gregory Beaver CC: Lars Strojny , Philip Olson , internals Mailing List References: <5B2E59A9-BC46-447F-BEBC-C4149866A802@roshambo.org> <1211494158.7416.5.camel@localhost> <48360328.3040500@lerdorf.com> <483763D0.6000708@chiaraquartet.net> In-Reply-To: <483763D0.6000708@chiaraquartet.net> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-3.0 (mail.lerdorf.com [204.11.219.139]); Fri, 23 May 2008 19:03:23 -0700 (PDT) Subject: Re: [PHP-DEV] magic quotes finale From: rasmus@lerdorf.com (Rasmus Lerdorf) Gregory Beaver wrote: > Rasmus Lerdorf wrote: >> I see absolutely no reason to force people to go through and change: >> >> if(!get_magic_quotes_gpc()) >> >> to: >> >> if (!function_exists('get_magic_quotes_gpc') || !get_magic_quotes_gpc()) >> >> when there is no technical reason to force them to do so. It is slower, >> more verbose and completely useless. > > I whole-heartedly agree. > > To the others: please examine this from a practical instead of a > philosophical position. > > What is the problem that needs solving? > > * magic_quotes_gpc escapes input, which is bad. > > How to fix it? > > * disable magic_quotes_gpc = on, disable set_magic_quotes_gpc(1) > > Implicit in this statement is that the problem is *not*: > > * Users use get_magic_quotes_gpc() check whether this faulty ini is > enabled, and set_magic_quotes_gpc(off) only if it is enabled. > > If we take the step of removing the get_magic_quotes_gpc() function, or > of adding an E_DEPRECATED, we make upgrading to PHP 5.3 harder, for no > benefit. Right, I guess I wasn't absolutely explicit. There is no point in spewing an E_DEPRECATED on get_magic_quotes_gpc(). Such warnings should be for people actually using a deprecated feature, not for functions that check for those features. -Rasmus