From: [EMAIL PROTECTED]
Operating system: Linux
PHP version: 4CVS-2003-12-18 (stable)
PHP Bug Type: Scripting Engine problem
Bug description: Inconsistency in variable setting allows variables that start with
numbers
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:
---------------
[EMAIL PROTECTED] cli $ ./php -r '${1} = "foo"; echo ${1}, "\n";'
foo
Expected result:
----------------
A parse error
Actual result:
--------------
Outputs 'foo'
--
Edit bug report at http://bugs.php.net/?id=26662&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26662&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26662&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=26662&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=26662&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=26662&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=26662&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=26662&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=26662&r=support
Expected behavior: http://bugs.php.net/fix.php?id=26662&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=26662&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=26662&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=26662&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26662&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=26662&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=26662&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=26662&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=26662&r=float