Mombu the Php Forum sponsored links

Go Back   Mombu the Php Forum > Php > #40484 : Variables starting with numbers ($01) cause entire page to not display
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 11th July 00:23
php-bugs
External User
 
Posts: 1
Default #40484 : Variables starting with numbers ($01) cause entire page to not display



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:

DOH! Thanks Derick - You Rock!


Previous Comments:
------------------------------------------------------------------------

[2007-02-14 19:51:37] derick@php.net

From that page:
"A valid variable name starts with a letter or underscore"

------------------------------------------------------------------------

[2007-02-14 19:47:05] david dot young at ghostknight dot us

.... 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.

------------------------------------------------------------------------

[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
  Reply With Quote


  sponsored links


Reply


Thread Tools
Display Modes




Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666