Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:33209 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 44812 invoked by uid 1010); 17 Nov 2007 06:18:50 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 44797 invoked from network); 17 Nov 2007 06:18:50 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Nov 2007 06:18:50 -0000 Authentication-Results: pb1.pair.com header.from=rasmus@lerdorf.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=rasmus@lerdorf.com; spf=permerror; 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:40714] helo=mail.lerdorf.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 57/6E-51194-9C78E374 for ; Sat, 17 Nov 2007 01:18:50 -0500 Received: from trainburn-lm-corp-yahoo-com.local (c-24-6-228-50.hsd1.ca.comcast.net [24.6.228.50]) (authenticated bits=0) by mail.lerdorf.com (8.14.2/8.14.2/Debian-1) with ESMTP id lAH6IkFq005345 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 16 Nov 2007 22:18:46 -0800 Message-ID: <473E87C5.4090200@lerdorf.com> Date: Fri, 16 Nov 2007 22:18:45 -0800 User-Agent: Thunderbird 2.0.0.9 (Macintosh/20071031) MIME-Version: 1.0 To: Sam Barrow CC: internals@lists.php.net 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> In-Reply-To: <1195279545.12249.47.camel@sams-room> X-Enigmail-Version: 0.95.5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.91.2/4822/Fri Nov 16 17:26:56 2007 on colo.lerdorf.com X-Virus-Status: Clean Subject: Re: [PHP-DEV] Re: Question about superglobals From: rasmus@lerdorf.com (Rasmus Lerdorf) 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