Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:50943 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 3438 invoked from network); 9 Dec 2010 12:27:25 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Dec 2010 12:27:25 -0000 Authentication-Results: pb1.pair.com smtp.mail=james.butler@edigitalresearch.com; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=james.butler@edigitalresearch.com; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain edigitalresearch.com does not designate 217.154.180.62 as permitted sender) X-PHP-List-Original-Sender: james.butler@edigitalresearch.com X-Host-Fingerprint: 217.154.180.62 analysis.edigitalresearch.com Linux 2.6 Received: from [217.154.180.62] ([217.154.180.62:33745] helo=mail.edigitalresearch.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 69/F0-32433-C2BC00D4 for ; Thu, 09 Dec 2010 07:27:25 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.edigitalresearch.com (Postfix) with ESMTP id 9DAEE181717; Thu, 9 Dec 2010 12:27:20 +0000 (GMT) X-Virus-Scanned: amavisd-new at edigitalresearch.com Received: from mail.edigitalresearch.com ([127.0.0.1]) by localhost (mail.edigitalresearch.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Zh1VFVih2Mr6; Thu, 9 Dec 2010 12:27:20 +0000 (GMT) Received: from zarafa.localdomain (unknown [10.0.0.20]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.edigitalresearch.com (Postfix) with ESMTPS id 0C6CE181713; Thu, 9 Dec 2010 12:27:20 +0000 (GMT) Received: from zarafa.edigitalresearch.com (zarafa.edigitalresearch.com [10.0.0.20]) by zarafa.localdomain (Postfix) with SMTP id BC485100B27; Thu, 9 Dec 2010 12:27:19 +0000 (GMT) To: =?windows-1252?Q?Ilia_Alshanetsky?= , =?windows-1252?Q?Andrey_Hristov?= Cc: =?windows-1252?Q?PHP_Internals_List?= Date: Thu, 9 Dec 2010 12:27:19 +0000 Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable In-Reply-To: References: <4D00ABFE.5070403@hristov.com> X-Priority: 3 (Normal) X-Mailer: Zarafa 6.40.2-22452 Thread-Index: AcuXnGw1hvbiyhasRj6OdBPY8D1iRA== Message-ID: Subject: RE: [PHP-DEV] Deprecating "global" + $GLOBALS, making $_REQUEST, $_GET, $_POST read-only From: james.butler@edigitalresearch.com (=?windows-1252?Q?James_Butler?=) -----Original Message----- From: Ilia Alshanetsky [mailto:ilia@prohost.org]=20 On Thu, Dec 9, 2010 at 5:14 AM, Andrey Hristov wrote: > =C2=A0Hi guys, > the topic says most of it. What do you think about deprecating the global > keyword and $GLOBALS with it=3F 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 ------- One other potential negative... By making them read only, are you removing the ability to scrub/delete them=3F Surely this is bad point=3F J