Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:50942 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 1844 invoked from network); 9 Dec 2010 12:23:43 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Dec 2010 12:23:43 -0000 Authentication-Results: pb1.pair.com header.from=ilia@prohost.org; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ilia@prohost.org; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain prohost.org designates 209.85.161.54 as permitted sender) X-PHP-List-Original-Sender: ilia@prohost.org X-Host-Fingerprint: 209.85.161.54 mail-fx0-f54.google.com Received: from [209.85.161.54] ([209.85.161.54:61162] helo=mail-fx0-f54.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6D/A0-32433-E4AC00D4 for ; Thu, 09 Dec 2010 07:23:43 -0500 Received: by fxm16 with SMTP id 16so2383867fxm.13 for ; Thu, 09 Dec 2010 04:23:39 -0800 (PST) MIME-Version: 1.0 Received: by 10.223.83.133 with SMTP id f5mr7772318fal.101.1291897419486; Thu, 09 Dec 2010 04:23:39 -0800 (PST) Received: by 10.223.20.20 with HTTP; Thu, 9 Dec 2010 04:23:39 -0800 (PST) In-Reply-To: <4D00ABFE.5070403@hristov.com> References: <4D00ABFE.5070403@hristov.com> Date: Thu, 9 Dec 2010 07:23:39 -0500 Message-ID: To: Andrey Hristov Cc: PHP Internals List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Deprecating "global" + $GLOBALS, making $_REQUEST, $_GET, $_POST read-only From: ilia@prohost.org (Ilia Alshanetsky) On Thu, Dec 9, 2010 at 5:14 AM, Andrey Hristov wrote: > =A0Hi guys, > the topic says most of it. What do you think about deprecating the global > keyword and $GLOBALS with it? Together with this making $_REQUEST, $_GET = and > $_POST read-only as they should be used only to read-only anyway. I do not believe that making these read-only is going to yield any performance benefits and the chances of this breaking many scripts is quite large. -1 Ilia