Even if i'm a php developer since a while, i never new or see usage of the case-insensitive "feature". IMO that's something a bit terrible and people do not use it but *make mistakes* that PHP "automatically fix". This behavior is very weird and comes with bad code quality.
Of course this is a BCBreak, but as Yasuo Ohgaki said, this bc break is not so hard to detect. Please consider adding the warning in PHP 5.7 and fixing it in PHP 7. Thanks for reading. Cheers, 2014-12-23 8:47 GMT+01:00 Pierre Joye <pierre....@gmail.com>: > On Tue, Dec 23, 2014 at 2:17 AM, Ferenc Kovacs <tyr...@gmail.com> wrote: > > On Sat, Dec 20, 2014 at 11:01 PM, F & N Laupretre <nf.laupre...@yahoo.fr > > > > wrote: > > > >> Hi, > >> > >> > >> > >> I don't know if this was discussed before. So, tell me what you think > >> before > >> I write an RFC. > >> > >> > >> > >> I would like to propose that namespaces, functions, and classes become > >> case-sensitive (constants are already case-sensitive). Actually, I never > >> understood why they are case-insensitive. Even if the performance gain > is > >> negligible, I think it could be the right time to question this. > >> > >> > > I think that the cost of that BC break is too high, and will only happen > in > > an alternative implementation (if at all). > > Putting that aside, if we want to go down that road, we should first > > discourage people from such usage, and as we never did that(no E_STRICT > no > > E_DEPRECATED) it would be extremely rude to remove support for that in > 7.0. > > I think that a Pull Request for adding E_STRICT or maybe even > E_DEPRECATED > > would have a chance of getting voted in but depends on the implementation > > and how much overhead would it cost. > > I cannot agree on even adding a flag here. There is no gain, the code > base won't change but the cost of the notice/deprecation will be too > high as well, relatively speaking. > > CS can be used and enforced on a per project basis if a project wants > to rely on the same cases for his application, libs or modules. > Platforms with case insensitive file systems will work just fine. > > Anyone dying while waiting to see PHP having case sensitive symbols > handling should go ahead with a RFC. He will also have to deal with > file ops while being at it. Should they remain case insensitive? Do > manual checks to match the path actually being requested (ie. possible > on windows using meta info), or keep everything the way it is now? > These are all things we should take into account, not only "heh, let > make symbols case sensitive". > > Cheers, > -- > Pierre > > @pierrejoye | http://www.libgd.org > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > >