Bug #17574: variable name $2size allowed
| From: | php at photography-on-the dot net | Date: | Mon, 03 Jun 2002 12:35:57 +0000 |
| Subject: | Bug #17574: variable name $2size allowed | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-9300@lists.php.net to get a copy of this message | ||
From: php@photography-on-the.net
Operating system: Windows XP
PHP version: 4.2.0
PHP Bug Type: Variables related
Bug description: variable name $2size allowed
I POST a form with
<select name="2size">
and I read it back with
if (isset ($HTTP_POST_VARS['2size']))
{$size = $HTTP_POST_VARS['2size'];
}
PHP 4.2 accepts this without errors. Isn't this considered an illegal
variable name? PHP Manual says: "A valid variable name starts with a
letter or underscore,"
--
Edit bug report at http://bugs.php.net/?id=17574&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=17574&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=17574&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=17574&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=17574&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=17574&r=support
Expected behavior: http://bugs.php.net/fix.php?id=17574&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=17574&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=17574&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=17574&r=globals