PHP 4.0 Bug #5515: class has problems as a key in hashes

From: Date: Tue, 11 Jul 2000 18:25:25 +0000
Subject: PHP 4.0 Bug #5515: class has problems as a key in hashes
Groups: php.dev 
Request: Send a blank email to php-dev+get-24114@lists.php.net to get a copy of this message
From: medwards@corestrategy.com Operating system: Linux 2.2.16 PHP version: 4.0.0 PHP Bug Type: Scripting Engine problem Bug description: class has problems as a key in hashes If I do: <?=$bug_tracker[class]?> PHP gives me a parse error saying it is looking for a "]" symbol. If I do: <?=$bug_tracker["class"]?> it works as intended. I assume this is because class is a PHP reserved word? I still think the parser should be able to cope with this. Let me know if I'm wrong, thanks.

« previous php.dev (#24114) next »