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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 04:01:30 2024 UTC