#26662 [Opn->Ver]: Inconsistency in variable setting allows variables that start with numbers
From: john@php.net Date: Fri, 19 Dec 2003 02:25:21 +0000 Subject: #26662 [Opn->Ver]: Inconsistency in variable setting allows variables that start with numbers References: 1 Groups: php.bugs Request: Send a blank email to php-bugs+get-52277@lists.php.net to get a copy of this message
ID: 26662
Updated by: john@php.net
Reported By: alindeman@php.net
-Status: Open
+Status: Verified
Bug Type: Scripting Engine problem
Operating System: Linux
PHP Version: 4CVS-2003-12-18 (stable)
New Comment:
Confirmed this bug is in PHP 5 B3RC1 as well. It gets worse, you can
put whatever you want in ${} and it'll take it just fine...
Previous Comments:
------------------------------------------------------------------------
[2003-12-18 21:06:52] alindeman@php.net
Description:
------------
It is possible to set variables that start with numbers.
I reproduced this with a PHP 4.3.x-dev snapshot AND PHP 5.0.0b2 (I was
unable to get a snap to compile. autoconf errors out the wazoo).
Reproduce code:
---------------
andrew@laptop cli $ ./php -r '${1} = "foo"; echo ${1}, "\n";'
foo
Expected result:
----------------
A parse error
Actual result:
--------------
Outputs 'foo'
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=26662&edit=1
Thread (9 messages)
- #26662 [Opn->Ver]: Inconsistency in variable setting allows variables that start with numbers
- #26662 [Ver]: Inconsistency in variable setting allows variables that start with numbers
- #26662 [Ver->Bgs]: Inconsistency in variable setting allows variables that start with numbers
- #26662 [Bgs->Opn]: Inconsistency in variable setting allows variables that start with numbers
- #26662 [Opn]: Inconsistency in variable setting allows variables that start with numbers
- #26662 [Opn->Ver]: Inconsistency in variable setting allows variables that start with numbers
- #26662 [Ver->Opn]: Inconsistency in variable setting allows variables that start with numbers
- #26662 [Opn->Bgs]: Inconsistency in variable setting allows variables that start with numbers
| « previous | php.bugs (#52277) | next » |
|---|