Bug #14175: it is possible to assign a invalid variable-name
| From: | gerw at dds dot nl | Date: | Thu, 22 Nov 2001 12:57:56 +0000 |
| Subject: | Bug #14175: it is possible to assign a invalid variable-name | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-71375@lists.php.net to get a copy of this message | ||
From: gerw@dds.nl
Operating system: win98, freebsd
PHP version: 4.0.5
PHP Bug Type: Variables related
Bug description: it is possible to assign a invalid variable-name
<?php
$1 = "hello";
?>
This will produce an error.
That isn't very strange ;-)
But....
<?php
${"1"} = "hello";
?>
This is allowed.
Isn't this a bug?
--
Edit bug report at: http://bugs.php.net/?id=14175&edit=1