Bug #14175 Updated: it is possible to assign a invalid variable-name
| From: | derick@php.net | Date: | Thu, 22 Nov 2001 13:00:17 +0000 |
| Subject: | Bug #14175 Updated: it is possible to assign a invalid variable-name | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-71376@lists.php.net to get a copy of this message | ||
ID: 14175
Updated by: derick
Reported By: gerw@dds.nl
Old Status: Open
Status: Bogus
Bug Type: Variables related
Operating System: win98, freebsd
PHP Version: 4.0.5
New Comment:
Nope, this is not a bug, but expected behavior. You can also uses space and interpunction marks like
this.
However, it's sitll veyr ugly.
Derick
Previous Comments:
------------------------------------------------------------------------
[2001-11-22 07:57:56] gerw@dds.nl
<?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 this bug report at http://bugs.php.net/?id=14175&edit=1