Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:14447 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 42735 invoked by uid 1010); 28 Jan 2005 22:54:18 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 42710 invoked from network); 28 Jan 2005 22:54:18 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Jan 2005 22:54:18 -0000 X-Host-Fingerprint: 80.74.107.235 mail.zend.com Linux 2.4/2.6 Received: from ([80.74.107.235:34915] helo=mail.zend.com) by pb1.pair.com (ecelerity HEAD (r4105:4106)) with SMTP id B7/FB-14132-792CAF14 for ; Fri, 28 Jan 2005 17:54:15 -0500 Received: (qmail 11009 invoked from network); 28 Jan 2005 22:54:09 -0000 Received: from localhost (HELO andi-notebook.zend.com) (127.0.0.1) by localhost with SMTP; 28 Jan 2005 22:54:09 -0000 Message-ID: <5.1.0.14.2.20050128145327.04025190@localhost> X-Sender: andi@localhost X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Fri, 28 Jan 2005 14:54:01 -0800 To: Michael Virnstein ,internals@lists.php.net In-Reply-To: <20050128223155.81436.qmail@lists.php.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: Re: [PHP-DEV] Using Superglobals for variable variables works From: andi@zend.com (Andi Gutmans) References: <20050128223155.81436.qmail@lists.php.net> The idea is that the following doesn't work by design: $a = "_GET"; var_dump($$a); At 11:31 PM 1/28/2005 +0100, Michael Virnstein wrote: >Hi PHP-Devs, > >i don't know if it is a bug or a new feature of php5. The php manual says, >that using superglobals for variable variables isn't working, so something >like this shouldn't work: > > >$a = 'hello world'; > >echo ${$_GET['test']}; > >?> > >Actually it does work. Is this intended now? Would be nice, but if it is a >simple bug and i can't rely on it to work in the future, i won't use it. >Hope it is a feature though. ;) > >Regards, Michael > >-- >PHP Internals - PHP Runtime Development Mailing List >To unsubscribe, visit: http://www.php.net/unsub.php