php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #34572 Using a variable with 3 Chars does not work. Less or more chars works fine
Submitted: 2005-09-21 06:10 UTC Modified: 2005-09-21 12:07 UTC
From: sebbelx at gmx dot de Assigned:
Status: Not a bug Package: Variables related
PHP Version: 5.0.5 OS: Windows XP Prof.
Private report: No CVE-ID: None
 [2005-09-21 06:10 UTC] sebbelx at gmx dot de
Description:
------------
If i try to assign a 3 Chars variable it does not work.
Less or more Chars as a variable name works fine.

Reproduce code:
---------------
$ABC = 1234; // does not work
$AB = 1234; // works
$ABCD = 1234; // works

// Any cases of 3 Char vars does not work.. weired!

echo "ABC: $ABC<br>AB: $AB<br>ABCD: $ABCD";

Expected result:
----------------
ABC: 1234
AB: 1234
ABCD: 1234

Actual result:
--------------
ABC: 
AB: 1234
ABCD: 1234

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-09-21 06:13 UTC] sebbelx at gmx dot de
Adding numbers to increase length of variable's name does not work either.
 [2005-09-21 06:21 UTC] sebbelx at gmx dot de
FIXED: Found Bug -> You're not allowed to use the Number "1" as the last Char ($AB1 does not work, $AB2 works fine)
 [2005-09-21 12:04 UTC] sniper@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5-win32-latest.zip

Works fine for me.
 [2005-09-21 12:06 UTC] tony2001@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.

Works just fine in any combination I can imagine.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 17 22:01:31 2024 UTC