Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:22193 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 57083 invoked by uid 1010); 7 Mar 2006 14:08:50 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 57068 invoked from network); 7 Mar 2006 14:08:50 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Mar 2006 14:08:50 -0000 X-Host-Fingerprint: 80.74.107.235 mail.zend.com Linux 2.5 (sometimes 2.4) (4) Received: from ([80.74.107.235:56102] helo=mail.zend.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 65/E9-22029-FE39D044 for ; Tue, 07 Mar 2006 09:08:48 -0500 Received: (qmail 5693 invoked from network); 7 Mar 2006 14:08:41 -0000 Received: from localhost (HELO zeev-notebook.zend.com) (127.0.0.1) by localhost with SMTP; 7 Mar 2006 14:08:41 -0000 Message-ID: <7.0.1.0.2.20060307160220.05bda238@zend.com> X-Mailer: QUALCOMM Windows Eudora Version 7.0.1.0 Date: Tue, 07 Mar 2006 16:08:41 +0200 To: pierre.php@gmail.com Cc: internals@lists.php.net,derick@php.net (Derick Rethans) In-Reply-To: <20060307112759.7ed7e9ec@localhost.localdomain> References: <20060305162128.5b1fdb86@localhost.localdomain> <20060306214619.5e6ec076@localhost.localdomain> <006301c641a5$17625f50$6600a8c0@binarysecfb111> <440D3C70.5040003@hardened-php.net> <440D3D7F.5080505@lerdorf.com> <440D3E24.2040101@hardened-php.net> <20060307112759.7ed7e9ec@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: Re: [PHP-DEV] Re: Adieu register_globals From: zeev@zend.com (Zeev Suraski) At 12:27 07/03/2006, Pierre wrote: >On 3/7/06, Derick Rethans wrote: > > On Tue, 7 Mar 2006, Stefan Esser wrote: > > > > > > > > > That was the plan. Checking for register_globals should return > > > > false. > > > > > > Pierre's list says it removes things like > > > get_magic_quotes_gpc() ..., which is a NONO. > > > > yeah, agreed. And we should also throw errors when people make the > > setting, as per > > http://www.php.net/~derick/meeting-notes.html#register-globals > >What is the point of detecting something that does not exist anymore? The point is that breakage is aggregated, not binary. The more stuff we break, the more difficult it is to port, and frankly, it's quite likely that a non OO app could migrate fairly cleanly even to PHP 6 with unicode disabled (perhaps with minor fixes). get_magic_quotes_gpc() is designed for apps to do something differently depending on the value of magic_quotes_gpc. It's fine that it's always off in PHP 6, but there's no reason not to keep this function (to always return false) so that you don't have to fix God knows how many lines of code to remove it. Zeev