Case sensitivity
| From: | Stan Vassilev | FM | Date: | Thu, 06 Nov 2008 17:46:24 +0000 |
| Subject: | Case sensitivity | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-41731@lists.php.net to get a copy of this message | ||
NOTE: Continuing from thread "Call it: allow reserved words in a class or not?":
> As much as I'd love to see more case-sensitivity, I'm afraid it would
> break quite a lot of existing apps, according to Google Code.
>
> http://www.google.com/codesearch?q=lang%3Aphp+%3D%5Cs%2AArray
>
> -JD
It's worse than I thought, really out of the question for 5.x.
Though I still think it's something we should consider for 6.0 as it's something we need
to fix in the long term (and 6.0 already has breaks, such as strings used in binary operations need
to be changed to binary strings).
I can provide a short PHP script which can automatically fix the case of internal classes and
keywords like array() in most source code out there.
We can test such automated porting scripts on samples collected from PEAR, Google Code and projects
like Drupal, Joomla etc. to reduce side effects.
Regards, Stan Vassilev