php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11269 ${"some string"} variable referencing is case sensitive
Submitted: 2001-06-04 18:22 UTC Modified: 2001-06-05 01:27 UTC
From: tswan at d2interactive dot com Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0.5 OS: RH 6.2 Linux 2.2.19
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: tswan at d2interactive dot com
New email:
PHP Version: OS:

 

 [2001-06-04 18:22 UTC] tswan at d2interactive dot com
<?
$bob = "Foo";

if (${"B"."o"."B"} == ${"b"."o"."b"})
	echo "I work";
else
	echo "I don't work";

echo "1:".${"B"."o"."B"}."<br>";
echo "2:".${"b"."o"."b"}."<br>";

?>

If variables are supposed to be case-insensitive I would expect the referencing behavior to follow as well.

I'd love to see this fixed before 4.0.6 :-)

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-06-05 01:27 UTC] sniper@php.net
Variable names in PHP are case-sensitive:

http://www.php.net/manual/en/language.variables.php

Function names aren't. (this will propably change in future)

--Jani

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Dec 14 21:00:01 2025 UTC