Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:5101 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 56552 invoked by uid 1010); 30 Oct 2003 10:33:54 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 56528 invoked from network); 30 Oct 2003 10:33:54 -0000 Received: from unknown (HELO mail2.uvt.nl) (137.56.0.62) by pb1.pair.com with SMTP; 30 Oct 2003 10:33:54 -0000 Received: from gt0306.uvt.nl (gt0306.uvt.nl [137.56.97.52]) by mail2.uvt.nl (8.12.9/8.12.9) with ESMTP id h9UAXnbX017540 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NOT) for ; Thu, 30 Oct 2003 11:33:51 +0100 (MET) To: internals@lists.php.net Content-Type: text/plain Organization: Net Collective Message-ID: <1067509592.3129.20.camel@gt0306.uvt.nl> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Thu, 30 Oct 2003 11:26:33 +0100 Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=0.0 required=5.0 tests=none version=2.55-uvt4 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.55-uvt4 (1.174.2.19-2003-05-19-exp) X-Spam-Checker-Version: SpamAssassin 2.55-uvt4 (1.174.2.19-2003-05-19-exp) X-Virus-Scanned: by amavisd-new-20021116-patch-4 (http://amavis.org/) on mailone.uvt.nl Subject: superglobals inside of function declarations From: dewaard@netcollective.nl (Filip de Waard) Hello, I've been using PHP for quite a while now and i'm getting interested it's internal beheaviour. I'm wondering why it isn't possible to use a global variable inside of a function declaration. For example: Of course there are ways to circumvent this problem that have the same result, but require more code. IMHO allowing globals inside of function declarions will create interesting possibilities that could result in more efficient code. Regards, Filip de Waard Net Collective www.netcollective.nl