News for hackers. Stuff that matters.
Re:PHP 5.3.3 hangs on numeric value 2.2250738585072011e-308 by istvanp on Tuesday January 04, 2011 @03:55AM (#2066363)
Rasmus Lerdorf just tweeted that it's a gcc optimizer issue:

  Works fine with -O0 but not -O2
http://twitter.com/rasmus/statuses/22212610308964353
Re:PHP 5.3.3 hangs on numeric value 2.2250738585072011e-308 by gjm11 on Tuesday January 04, 2011 @06:15AM (#2066576)
When a problem is described as an optimizer issue, it usually means that the code is making some unsound assumptions that happen to be true when compiling without optimization. Of course it's easier on the programmer's ego to blame it on the compiler...

(I haven't looked at this particular issue; maybe it really is a compiler bug. But the odds are against it.)

Re:PHP 5.3.3 hangs on numeric value 2.2250738585072011e-308 by istvanp on Tuesday January 04, 2011 @06:21AM (#2066588)
Might be true in general, but when the creator of PHP says it's a compiler issue it's hard to 2nd guess.

He also later added:

  We still need to fix the code to make it immune to compiler switches.
Re:PHP 5.3.3 hangs on numeric value 2.2250738585072011e-308 by SimHacker on Tuesday January 04, 2011 @06:57AM (#2066637)
"I'm not a real programmer. I throw together things until it works then I move on. The real programmers will say "Yeah it works but you're leaking memory everywhere. Perhaps we should fix that."" -Rasmus Lerdorf

When you attempt to make an argument from authority, at least choose someone who has some credibility to use as an authority.

Re:PHP 5.3.3 hangs on numeric value 2.2250738585072011e-308 by marshray on Tuesday January 04, 2011 @02:57PM (#2068203)
We still need to fix the code to make it immune to compiler switches.

In other words, "We know that our code is buggy and it is relying on undefined behavior."

I.e., this developer knows it's a problem with his code, not the compiler, but he phrases it as if the "compiler switches" are the things causing the problems. This is classic developer arrogance and immaturity.

Thank God I don't rely on his software for anything important.

Re:PHP 5.3.3 hangs on numeric value 2.2250738585072011e-308 by naz on Tuesday January 04, 2011 @06:34AM (#2066604)
Re:PHP 5.3.3 hangs on numeric value 2.2250738585072011e-308 by SimHacker on Tuesday January 04, 2011 @06:55AM (#2066634)
"I was really, really bad at writing parsers. I still am really bad at writing parsers." -Rasmus Lerdorf
Re:PHP 5.3.3 hangs on numeric value 2.2250738585072011e-308 by mightbyte on Tuesday January 04, 2011 @11:43AM (#2067533)
"For all the folks getting excited about my quotes. Here is another - Yes, I am a terrible coder, but I am probably still better than you :)" - Rasmus Lerdorf
Re:PHP 5.3.3 hangs on numeric value 2.2250738585072011e-308 by yuhong on Tuesday January 04, 2011 @02:03PM (#2068027)
That is because with x87 floating point, when the number is in registers, it is 80-bit, but when the compiler spills it to memory, it is 64-bit, which is why -ffloat-store works.