Bug #15228 Updated: variable variable spacing
| From: | andi@php.net | Date: | Sat, 29 Jun 2002 07:56:04 +0000 |
| Subject: | Bug #15228 Updated: variable variable spacing | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-12503@lists.php.net to get a copy of this message | ||
ID: 15228
Updated by: andi@php.net
Reported By: philip@cornado.com
-Status: Analyzed
+Status: Bogus
Bug Type: Scripting Engine problem
Operating System: n/a
PHP Version: 4.0CVS-2002-01-25
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[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