[Bug 386830] [NEW] Reserved words are case-insensitive.

Jesdisciple jesdisciple at gmail.com
Sat Jun 13 23:14:22 BST 2009


Public bug reported:

Binary package hint: php5

Ubuntu 9.04
PHP 5.2.6-3ubuntu4.1

At the least, this is a documentation bug; I consider the behavior
undesirable, so it's also a feature request.  I was told to report bugs
to Ubuntu rather than PHP; if this is incorrect, I'll take it upstream
myself.

I learned the below function name in other languages where it's allowed,
although I'm not certain whether this is because keywords are case-
sensitive or because foreach isn't a keyword there.

function forEach(){
}

I expect this to be valid, but PHP says otherwise:
Parse error: syntax error, unexpected T_FOREACH, expecting T_STRING

The manual doesn't mention this that I can find (
http://www.php.net/manual/en/reserved.keywords.php ).

** Affects: php5 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
Reserved words are case-insensitive.
https://bugs.launchpad.net/bugs/386830
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in ubuntu.



More information about the Ubuntu-server-bugs mailing list