That's why, for example, .NET world has .ToLowerInvariant() and .ToUpperInvariant() and developers are advised to use it when doing internal stuff. Interpreting / parsing a language is clearly an internal task and shouldn't be affected by locale changes.
PHP Bug #18556 : Setting locale to 'tr_TR' lowercases class names
41–50 of 135 posts
Re: PHP Bug #18556 : Setting locale to 'tr_TR' lowercases class names
#42Re: PHP Bug #18556 : Setting locale to 'tr_TR' lowercases class names
#43Re: PHP Bug #18556 : Setting locale to 'tr_TR' lowercases class names
#44Or anywhere for that matter?
There is no "they" in this equation. There is no person who should be held more accountable than you or I for fixing this problem.
The choices are simple:
1) Fix the problem
2) Find a work around
3) Don't use PHP
What's that? There is a lot of open source software that you wanted to use for free that's written in PHP that does just what you need except for this tiny little trivial thing that should be easy to fix? Well too bad!
Trade off the cost of fixing it against the cost of rewriting the big, free, open source package that's written in PHP you wanted to use, in the programming language of your choice, and stop complaining.
Re: PHP Bug #18556 : Setting locale to 'tr_TR' lowercases class names
#45PHP is cool, it is useful, it is a magnet for bad developers. This way they don't pollute our ecosystems.
Re: PHP Bug #18556 : Setting locale to 'tr_TR' lowercases class names
#46If there are so many people depending on PHP and all the code written in PHP in all of Turkey, why doesnt someone in Turkey fix the problem? Or anywhere for that matter? There is no "they" in this equation. There is no person who should be held more accountable than you or I for fixing this problem. The choices are simple: 1) Fix the problem 2) Find a work around 3) Don't use PHP What's that? There is a lot of open s…
We all know PHP has its shortcomings, but there appears to be a witch hunt going on here.
Re: PHP Bug #18556 : Setting locale to 'tr_TR' lowercases class names
#47What was the advantage of case insensitive class and function names? Sounds to me like someone that was implementing very early on without great reasons and them kept for backwards comparability. In all my programming in PHP I have never thought to take advantage of this.
Re: PHP Bug #18556 : Setting locale to 'tr_TR' lowercases class names
#48Earlier quoted context omitted.
I believe it's because PHP supports case insensitive class names. It sounds like this will not change: https://bugs.php.net/bug.php?id=26575&edit=1
Class and function names are case insensitive. But variables are not. Go figure that one out.
Re: PHP Bug #18556 : Setting locale to 'tr_TR' lowercases class names
#49PHP is a big legacy open source project, worked on by many volunteers whenever they can spare the time, just like any other open source project. It is wildly successful despite this and many other bugs. I only wish that the people who spend as much time attacking PHP and it's developers endlessly would instead focus some of that energy into helping to improve PHP, but I guess some of us are just negatively charged. S…
And if you are going to design a new language (that's what "improved PHP" would be), you have very little to gain in basing your work on PHP. The ecosystem is in the current PHP, and it is as likely to transition to completely different language as it would be to transition to your "improved PHP".
Re: PHP Bug #18556 : Setting locale to 'tr_TR' lowercases class names
#50Earlier quoted context omitted.
I don't think those people understand the economics of programming languages. It's not going to die off any time soon, what with all the thousands of companies that use it, and zillions of lines of code. As someone who would rather not ever work with PHP again, the best thing is to simply focus on other languages and environments, helping to bolster those ecosystems.
Agreed, but publicising stupid problems with PHP actually does help that cause - it might push someone who's "on the fence" over to using a better system.
I'm currently having a go at Python + Flask in my spare time.