Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:14457 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 84391 invoked by uid 1010); 31 Jan 2005 18:27:32 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 84358 invoked by uid 1007); 31 Jan 2005 18:27:32 -0000 Message-ID: <20050131182732.84357.qmail@lists.php.net> To: internals@lists.php.net Date: Mon, 31 Jan 2005 19:27:31 +0100 User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 References: <20050128223155.81436.qmail@lists.php.net> <5.1.0.14.2.20050128145327.04025190@localhost> <20050128233054.9657.qmail@lists.php.net> <20050128234649.27693.qmail@lists.php.net> <20050128235345.42569.qmail@lists.php.net> <20050130193103.63809.qmail@lists.php.net> In-Reply-To: <20050130193103.63809.qmail@lists.php.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 217.81.215.237 Subject: referencing Superglobals with variable variables inside functions From: michael.virnstein@brodos.de (Michael Virnstein) Atm it isn't possible to use a construct like $var = ${'_GET'}; inside a function or method. Will this behaviour change in future versions of PHP? I think it is somehow odd and inconsistent to not be able to use the superglobals that way, while it is possible outside of functions and methods and also with any other variable, e.g. the $HTTP_*_VARS. Imo it's an unnecessary restriction and will keep ppl using the old $HTTP_*_VARS. I also see no reason for it to stay that way and i think it wasn't intended by you, the developers, in the first place but turned out to work that way afterwards. So I really hope it'll change, would make much more sense. What do you think? Regards, Michael P.S.: Sorry for the "double" post, but i thought this is worth an own "topic".