News for hackers. Stuff that matters.
Re:We will try to stop fixing bugs in PHP by martenshinwarts on Friday June 22, 2012 @02:35AM (#4145736)
"This bug report highlights the problems you run into if you use it for serious work."

Indeed. Passing an empty string for a parameter which is expected to be a float is SUCH serious work.

"if it breaks your stuff then tough shit because we're a bunch of amateurs."

You say that, but it rather seems like it broke amateur code.

Re:We will try to stop fixing bugs in PHP by Draiken on Friday June 22, 2012 @08:15AM (#4146422)
Unfortunately PHP is consistently inconsistent. It lets people do that, and it won't ever break. Until they "make it right".

Sure the guy didn't test the parameter as being empty, but if you pass a string instead of a float, an error should be raised, and that never happened until the fix. That's the big problem with PHP :/

Re:We will try to stop fixing bugs in PHP by martenshinwarts on Friday June 22, 2012 @09:51AM (#4146737)
"Sure the guy didn't test the parameter as being empty, but if you pass a string instead of a float, an error should be raised"

Just like you should not pass strings in place of numbers, in accounting software of all things. Why can't just everbody get it absolutely right the first time?

Any language that can do anything also allows you to shoot yourself in the foot. And I think that was the case here, brainless programming; PHP hardly pulled out the rug under something reasonable in this case, they simply defined previously undefined behaviour... and when that happens, that always breaks crappy programs that depended on it, no matter in what language they're written. It's the big problem with idiots; PHP has nothing to do with it.

Re:We will try to stop fixing bugs in PHP by cube13 on Friday June 22, 2012 @11:50AM (#4147271)
>Just like you should not pass strings in place of numbers, in accounting software of all things. Why can't just everbody get it absolutely right the first time?

Because the input is a text box? Text is, after all, the way for people to input data into a computer.

Re:We will try to stop fixing bugs in PHP by jdjb on Friday June 22, 2012 @11:28PM (#4149933)
It stills shows a lack of rigour on the part of the developer. A simple "empty()" and "is_numeric()" check should be done on any user input expecting a float BEFORE you pass it off to a number formatting function expecting a float.
Re:We will try to stop fixing bugs in PHP by soc88 on Friday June 22, 2012 @07:51AM (#4146361)
In PHP every code is amateur code.
Re:We will try to stop fixing bugs in PHP by Produce on Friday June 22, 2012 @08:28AM (#4146461)
While PHP is full of inconsistencies, it's far fetched to make a claim like this. Take a look at Symfony2 and try saying that it's amateur code.