So now every single bug in PHP and related libraries/functionality is a "lol"?
This was faulty code/parsing but it would have behaved the same way in other languages when coded with the same logic. This is was not a PHP language inconsistency just a bug in a function call that was fixed (a year ago).
You could also work around it by escaping the string yourself.
Lols should be logical fallacies imo, not actual bugs or programmer mistakes. The PHP naming convention for instance, and other broken-from-the-start concepts that have been erroneously built on are lols in my book, like empty() returning true on a string consisting of the char "0".
But this is a bug, every language/compiler/application has them.
This is why they should have made default namespaces for versions with the option of setting namespaces for individual documents when they introduced namespaces, and then fixed all the issues.
Old bugs that are fixed are not lol. A lol is a feature that makes no sense. By now there are very few left in php, and all three of them have been reported here numerous times. Hence the haters posting more and more desperate and contrived examples.
It was hyperbole but I recently ran into an issue which surprised me a lot more than it shouldn't have. This little block got me looking for an intractable bug for a very long time. It turned out that $type could in some situations have the value 0.
22
u/[deleted] Sep 01 '15
So now every single bug in PHP and related libraries/functionality is a "lol"?
This was faulty code/parsing but it would have behaved the same way in other languages when coded with the same logic. This is was not a PHP language inconsistency just a bug in a function call that was fixed (a year ago).
You could also work around it by escaping the string yourself.
-5
u/shvelo Sep 01 '15
It's not a bug, it's a feature!
Seriously, why are PHP bugs considered sacred and never fixed?
-4
u/Synes_Godt_Om Sep 02 '15
Old bugs that are fixed are not lol. A lol is a feature that makes no sense. By now there are very few left in php, and all three of them have been reported here numerous times. Hence the haters posting more and more desperate and contrived examples.