<div dir="ltr">It's a hardware bug, which can be avoided by the right compilation flags. Since it comes from the legacy x87 feature, it doesn't happen on x86_64 which is a newer architecture.<br><br> Kaplan<br><br>
p.s.<br>The link you gave bellow is to <a href="http://php.net">php.net</a> not Zend.<br><br><div class="gmail_quote">On Wed, Jan 5, 2011 at 1:41 PM, Nadav Har'El <span dir="ltr"><<a href="mailto:nyh@math.technion.ac.il">nyh@math.technion.ac.il</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">On Wed, Jan 05, 2011, Hetz Ben Hamo wrote about "OT: PHP 32 bit numbers security issue":<br>
</div><div class="im">> Hi,<br>
> I just found something related to PHP and handling 32 bit numbers, I wrote<br>
> about it here: <a href="http://goo.gl/xqQZd" target="_blank">http://goo.gl/xqQZd</a><br>
<br>
</div>I found a fix on Zend's repository,<br>
<a href="http://svn.php.net/viewvc/php/php-src/trunk/Zend/zend_strtod.c?r1=307095&r2=307094&pathrev=307095" target="_blank">http://svn.php.net/viewvc/php/php-src/trunk/Zend/zend_strtod.c?r1=307095&r2=307094&pathrev=307095</a><br>
<br>
Does anyone know anything about what caused this bug, how come a "volatile"<br>
fixed it (what, it was a gcc optimization bug?), and what does it have to do<br>
with 32 vs 64 bits?<br>
<div class="im"><br>
<br>
--<br>
Nadav Har'El | Wednesday, Jan 5 2011, 29 Tevet 5771<br>
<a href="mailto:nyh@math.technion.ac.il">nyh@math.technion.ac.il</a> |-----------------------------------------<br>
</div>Phone +972-523-790466, ICQ 13349191 |The trouble with being punctual is that<br>
<a href="http://nadav.harel.org.il" target="_blank">http://nadav.harel.org.il</a> |nobody is there to appreciate it.<br>
<div><div></div><div class="h5"><br>
_______________________________________________<br>
Linux-il mailing list<br>
<a href="mailto:Linux-il@cs.huji.ac.il">Linux-il@cs.huji.ac.il</a><br>
<a href="http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il" target="_blank">http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il</a><br>
</div></div></blockquote></div><br></div>