# Case sensitivity

- Thread: https://externals.io/message/41731
- Original archive: https://news-web.php.net/php.internals/41731
- Started by Stan Vassilev | FM on 2008-11-06T17:46:24+00:00
- Messages: 3
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #41731 — Stan Vassilev | FM — 2008-11-06T17:46:24+00:00

URL: https://externals.io/message/41731#41731

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

---

## #41732 — Lukas Kahwe Smith — 2008-11-06T17:49:54+00:00

URL: https://externals.io/message/41731#41732 · In reply to: #41731

> NOTE: Continuing from thread "Call it: allow reserved words in a  
> class or not?":
>
> > […]
>
> 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.


NO!

regards,
Lukas Kahwe Smith
mls@pooteeweet.org

---

## #41772 — Lester Caine — 2008-11-08T09:33:53+00:00

URL: https://externals.io/message/41731#41772 · In reply to: #41732

Lukas Kahwe Smith wrote:
> 
> 
> 
> > […]
> 
> NO!

Is that to any move to case sensitivity? Even if it is the tidiest way of 
plugging some of the holes in a clean UTF8 implementation via 6.0 where 
'lower' or 'upper' may produce different results?

Personally I've always worked with maintaining case - C++ dictates it - so 
it's natural to ensure that a case-sensitive search always provides the 
correct results. I'll even correct code that differs ....

-- 
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/lsces/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk//
Firebird - http://www.firebirdsql.org/index.php
