Bug #15228 Updated: variable variable spacing
| From: | philip@php.net | Date: | Tue, 16 Jul 2002 05:25:20 +0000 |
| Subject: | Bug #15228 Updated: variable variable spacing | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-14279@lists.php.net to get a copy of this message | ||
ID: 15228
Updated by: philip@php.net
Reported By: philip@cornado.com
Status: Bogus
Bug Type: Scripting Engine problem
Operating System: n/a
PHP Version: 4.0CVS-2002-01-25
New Comment:
It's not a bug but it's a little weird, that's all :)
Previous Comments:
------------------------------------------------------------------------
[2002-06-29 03:56:03] andi@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
This isn't a bug but how PHP has always worked.
Changing this behavior isn't really feasible because of the way the
parser works. I do suggest however that you use $$foo because the
spaces are pretty ugly.
------------------------------------------------------------------------
[2002-01-25 17:29:10] yohgaki@php.net
Confirmed with ZE2 and ZE1 (PHP4.0.6)
------------------------------------------------------------------------
[2002-01-25 17:18:31] philip@cornado.com
The following should result in a parse error:
$foo = 'bar';
$bar = 'hello';
print $ $foo; // hello
print $$foo; // hello
Instead, 'hello' is printed both times.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=15228&edit=1