Bug #17574 Updated: variable name $2size allowed

From: Date: Mon, 03 Jun 2002 12:41:15 +0000
Subject: Bug #17574 Updated: variable name $2size allowed
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-9301@lists.php.net to get a copy of this message
ID: 17574 Updated by: mfischer@php.net Reported By: php@photography-on-the.net -Status: Open +Status: Bogus Bug Type: Variables related Operating System: Windows XP PHP Version: 4.2.0 New Comment: The manual is right, but there is no variable named '2size', it just a key in a hash which is perfectly valid. Previous Comments: ------------------------------------------------------------------------ [2002-06-03 08:35:57] php@photography-on-the.net 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 this bug report at http://bugs.php.net/?id=17574&edit=1

« previous php.bugs (#9301) next »