Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:37811 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 32389 invoked from network); 22 May 2008 23:35:09 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 May 2008 23:35:09 -0000 Authentication-Results: pb1.pair.com smtp.mail=rasmus@lerdorf.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=rasmus@lerdorf.com; 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:53446] helo=mail.lerdorf.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7A/26-30560-C2306384 for ; Thu, 22 May 2008 19:35:08 -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 m4MNZ40i026349; Thu, 22 May 2008 16:35:05 -0700 Message-ID: <48360328.3040500@lerdorf.com> Date: Thu, 22 May 2008 16:35:04 -0700 User-Agent: Thunderbird 2.0.0.4 (Macintosh/20070604) MIME-Version: 1.0 To: Lars Strojny CC: Philip Olson , internals Mailing List References: <5B2E59A9-BC46-447F-BEBC-C4149866A802@roshambo.org> <1211494158.7416.5.camel@localhost> In-Reply-To: <1211494158.7416.5.camel@localhost> 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]); Thu, 22 May 2008 16:35:05 -0700 (PDT) Subject: Re: [PHP-DEV] magic quotes finale From: rasmus@lerdorf.com (Rasmus Lerdorf) Lars Strojny wrote: > [ forgot to sent that to the list ] > > Hi Philip, > > Am Dienstag, den 20.05.2008, 12:55 -0700 schrieb Philip Olson: > [...] >> PHP 5.3 is approaching fast, so let's conclude our dealings with >> magical quotes... this should be the last time. Please have a look at >> the following RFC and discuss it within this thread. >> >> Magic Quotes in PHP 5.3 and beyond >> - http://wiki.php.net/rfc/magicquotes >> >> It recommends changes to both 5_3 and 6_0 branches, namely, removing >> E_DEPRECATED from the get_ magical quote functions. Silence means >> you're okay with the RFC being implemented. > > Why should we leave get_magic_quotes_gpc()? If someone wants to be > backwards compatible, just use > if (function_exists('get_magic_quotes_gpc') and @get_magic_quotes_gpc()) > Let's just add this to the manual, and everything is fine. > > I don't see a problem with this at all and it has the advantage of > allowing use to remove all the traces of magic quotes in 6. Magic quotes > are considered a bad practice for a long time. We have covered this a bunch of times already. magic_quotes_gpc are gone, but we leave in the function that tells userspace code that they are off. get_magic_quotes_gpc() will always return false which means that thousands of applications out there will run unchanged and will simply take the magic_quotes off code path. 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. -Rasmus