Bug #13780 Updated: At least missleading errormessage and possible a bug.

From: Date: Sun, 21 Oct 2001 17:48:57 +0000
Subject: Bug #13780 Updated: At least missleading errormessage and possible a bug.
References: 1  Groups: php.dev php.doc 
Request: Send a blank email to php-dev+get-68642@lists.php.net to get a copy of this message
ID: 13780 Updated by: derick Reported By: Draugsi@hotmail.com Status: Open Old Bug Type: Variables related Bug Type: Documentation problem Operating System: PHP Version: 4.0.6 New Comment: This is not a bug, but should be in the manual. Changing category. Derick Previous Comments: ------------------------------------------------------------------------ [2001-10-21 13:32:07] Draugsi@hotmail.com This error message is reported on your page : Parse error: parse error, expecting T_VARIABLE' or '$'' in ************** on line *** At first i thougt this was because i was "making" a 2 dimentional array or because i was doing somthing wrong in the query to MySQL but i found out the hard way that this was not the case. To reproduce this error is pretty easy, the only ting you have to do is this : <?php $2dAnim="All your base are belong to us."; ?> ... just this will trigger it, to fix this error just do : <?php $TwoDAnim="All your base are belong to us."; ?> Apparently if you have a digit as the first char in a variable you will get this error message. It would of been nice if i could have found some information about this, but instead i sat for "two" days trying to figure out how i screewd up the Multidimensional array or the Query. Regards, Draugsi. ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=13780&edit=1

« previous php.dev (#68642) next »