Bug #15228: variable variable spacing
| From: | philip at cornado dot com | Date: | Fri, 25 Jan 2002 22:18:32 +0000 |
| Subject: | Bug #15228: variable variable spacing | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-78151@lists.php.net to get a copy of this message | ||
From: philip@cornado.com
Operating system: n/a
PHP version: 4.0CVS-2002-01-25
PHP Bug Type: Scripting Engine problem
Bug description: variable variable spacing
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 bug report at: http://bugs.php.net/?id=15228&edit=1