Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:33211 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 47038 invoked by uid 1010); 17 Nov 2007 06:21:14 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 47023 invoked from network); 17 Nov 2007 06:21:14 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Nov 2007 06:21:14 -0000 Authentication-Results: pb1.pair.com header.from=sam@sambarrow.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=sam@sambarrow.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain sambarrow.com from 205.234.132.11 cause and error) X-PHP-List-Original-Sender: sam@sambarrow.com X-Host-Fingerprint: 205.234.132.11 scottsdale.servershost.net Received: from [205.234.132.11] ([205.234.132.11:45693] helo=scottsdale.servershost.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B0/EE-51194-9588E374 for ; Sat, 17 Nov 2007 01:21:13 -0500 Received: from [216.15.51.211] (port=50884 helo=[192.168.1.90]) by scottsdale.servershost.net with esmtpsa (SSLv3:RC4-MD5:128) (Exim 4.68) (envelope-from ) id 1ItH3K-0000Je-3Z; Sat, 17 Nov 2007 00:21:14 -0600 To: Rasmus Lerdorf Cc: internals@lists.php.net In-Reply-To: <473E87C5.4090200@lerdorf.com> References: <8D.46.01128.768AD374@pb1.pair.com> <473E6F38.4020008@lerdorf.com> <1195274394.12249.34.camel@sams-room> <200711162354.34489.larry@garfieldtech.com> <1195279274.12249.40.camel@sams-room> <1195279545.12249.47.camel@sams-room> <473E87C5.4090200@lerdorf.com> Content-Type: text/plain Date: Sat, 17 Nov 2007 01:21:14 -0500 Message-ID: <1195280474.12249.60.camel@sams-room> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 Content-Transfer-Encoding: 7bit X-Antivirus-Scanner: Clean mail though you should still use an Antivirus X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - scottsdale.servershost.net X-AntiAbuse: Original Domain - lists.php.net X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - sambarrow.com X-Source: X-Source-Args: X-Source-Dir: Subject: Re: [PHP-DEV] Re: Question about superglobals From: sam@sambarrow.com (Sam Barrow) True. What if we created a php.ini directive that defaulted to off that would determine the ability to declare superglobals, "allow_superglobals" or something. On Fri, 2007-11-16 at 22:18 -0800, Rasmus Lerdorf wrote: > Sam Barrow wrote: > > Just to make sure you understand me correctly, these are not at all > > undeclared globals (as you said). You have to specifically turn on the > > variables you want to be superglobals. > > They are undeclared in the individual functions where they are used. > You can declare them all you want in your part of a large project, but > the fact is that they end up in the superglobal namespace and developer > #2 working on another part of the code has no idea that you made up your > own superglobal and what used to be a function-local variable in his > code suddenly isn't anymore. > > -Rasmus