#40484 [Bgs]: Variables starting with numbers ($01) cause entire page to not display
| From: | david dot young at ghostknight dot us | Date: | Wed, 14 Feb 2007 19:47:08 +0000 |
| Subject: | #40484 [Bgs]: Variables starting with numbers ($01) cause entire page to not display | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-108923@lists.php.net to get a copy of this message | ||
ID: 40484
User updated by: david dot young at ghostknight dot us
Reported By: david dot young at ghostknight dot us
Status: Bogus
Bug Type: Variables related
Operating System: WIN XP PRO
PHP Version: 5.2.1
New Comment:
... what i dont understand, and its not covered in the link that was
provided, is why, $01 would cause the entire page to not parse AT ALL.
However, when a letter was put in front of the numbers, the variable
parsed correctly.
Previous Comments:
------------------------------------------------------------------------
[2007-02-14 18:47:28] tony2001@php.net
http://www.php.net/manual/en/language.variables.php
------------------------------------------------------------------------
[2007-02-14 18:38:14] derick@php.net
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions. Due to the volume
of reports we can not explain in detail here why your report is not
a bug. The support channels will be able to provide an explanation
for you.
Thank you for your interest in PHP.
.
------------------------------------------------------------------------
[2007-02-14 18:33:59] david dot young at ghostknight dot us
Description:
------------
When trying to parse text contained in any variable starting with a
number ( ie $01 ) it fails to display ANY portion of the page. ( Server
Data: Apache/2.0.59 (Win32) PHP/5.1.6 Server )
Reproduce code:
---------------
<?php
$01 = "online";
?>
<p>Status: <?php echo $01; ?></p>
Expected result:
----------------
the actual code is a bit more elaborate, but when i had originally set
it for $01, it should have parsed an image stating ONLINE ( url @
http://www.ghostknight.us/SBC2/status.php )
Actual result:
--------------
I had to reform my variable to $bot01 in order to get it to parse.
Thinking this was an isolated incident, I added the rest of the
variables, and even with $bot01, the other variables $02, $03, $04,
etc., prevented ANY data from being parsed on the site. Not even the
HTML <title> data was produced.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=40484&edit=1