News for hackers. Stuff that matters.
Re:Python alternatives for PHP functions by ksherlock on Tuesday December 25, 2012 @04:33PM (#4967156)
Here's my problem with nl2br:

Prior to 4.0.5, it used "<br>". As of 4.0.5, they switched to "<br />". (As of 5.3.0, they did the obvious thing and added a second parameter, is_xhtml).

This isn't an isolated incident -- any minor update is liable to change how a function works or what parameters it can take. So you're better off writing it yourself (or doing it inline with a string replace or regular expression).

Re:Python alternatives for PHP functions by josegonzalez on Tuesday December 25, 2012 @11:10PM (#4968116)
4.0.5 was released in 2001, more than a decade ago. When complaining about a language, complain about a current, feature breakage, not an old one that has since been fixed (5.3.0 came out in 2009, 3 years ago).
Re:Python alternatives for PHP functions by smsm42 on Wednesday December 26, 2012 @01:55AM (#4968459)
So, where's a problem? That is some godforsaken version that is dead for many years and nobody uses it it was working differently? It's not a problem, it's a feature - the language evolves and changes according to what people need. It happens with all languages and all libraries and all code.
Re:Python alternatives for PHP functions by eurleif on Wednesday December 26, 2012 @01:58AM (#4968464)
4.0.5 is a minor version. Minor versions shouldn't change the behavior of existing code (except to fix bugs).
Re:Python alternatives for PHP functions by smsm42 on Wednesday December 26, 2012 @04:19AM (#4968701)
4.0.5 was more than 11 years ago. 5.0 was released 8.5 years ago. Why, let's discuss something that happened 11 years ago as if it is relevant to anything now.