Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:33242 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 53582 invoked by uid 1010); 18 Nov 2007 10:02:32 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 53567 invoked from network); 18 Nov 2007 10:02:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Nov 2007 10:02:32 -0000 Authentication-Results: pb1.pair.com smtp.mail=robert@interjinn.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=robert@interjinn.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain interjinn.com from 66.11.173.122 cause and error) X-PHP-List-Original-Sender: robert@interjinn.com X-Host-Fingerprint: 66.11.173.122 unknown Received: from [66.11.173.122] ([66.11.173.122:52479] helo=blobule.interjinn.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 33/41-41436-5BD00474 for ; Sun, 18 Nov 2007 05:02:30 -0500 Received: by blobule.interjinn.com (Postfix, from userid 2000) id 3100D5AD15D; Sun, 18 Nov 2007 05:02:26 -0500 (EST) To: Stanislav Malyshev Cc: Sam Barrow , internals@lists.php.net In-Reply-To: <473F9D58.5080203@zend.com> References: <8D.46.01128.768AD374@pb1.pair.com> <1195246391.21084.15.camel@sbarrow-desktop> <1195250285.4012.6.camel@johannes.nop> <1195251014.21084.20.camel@sbarrow-desktop> <473E349E.3050704@swplumb.com> <1195259494.10547.2.camel@sams-room> <0E6C7DB2-4126-4660-A813-E21C03045247@caedmon.net> <473E5F4F.2020508@swplumb.com> <6743D10C-4AE9-4974-B0C3-3A632A0326F1@caedmon.net> <1195273116.12249.28.camel@sams-room> <473F9D58.5080203@zend.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: InterJinn Date: Sun, 18 Nov 2007 05:02:24 -0500 Message-ID: <1195380145.1702.21.camel@blobule> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 Subject: Re: [PHP-DEV] Re: Question about superglobals From: robert@interjinn.com (Robert Cummings) On Sat, 2007-11-17 at 18:03 -0800, Stanislav Malyshev wrote: > > You say that superglobals were not designed to be user defined, think > > about it, the concept of a superglobal is present in C and C++, two of > > the maturest and strictest languages around. > > Concept of inserting assembly code is in C and C++ too. That doesn't > mean it's a good idea to add it to PHP. C and C++ are low-level > languages that were designed for giving people "enough rope". PHP is not > so. I didn't notice Sam's above post abut C and C++ before. Unlike PHP, C and C++ require you declare your variables. Any locally declared variables have precedence over globally defined variables and so there's only risk of confusion if you forget to declare your local variable. This clearly puts usefulness of C/C++ globals and PHP globals in different arenas. Cheers, Rob. -- ........................................................... SwarmBuy.com - http://www.swarmbuy.com Leveraging the buying power of the masses! ...........................................................