From 66753ff6c758703d2c681d27496ed9ddbe8f33b7 Mon Sep 17 00:00:00 2001 From: Scott MacVicar Date: Tue, 4 Jan 2011 22:36:23 +0000 Subject: [PATCH] Fix bug #53632 with x87 fpu --- NEWS | 1 + Zend/zend_strtod.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index e3f181021f..8cd674e669 100644 --- a/NEWS +++ b/NEWS @@ -8,6 +8,7 @@ . Indirect reference to $this fails to resolve if direct $this is never used in method. (Scott) . Fixed Bug #53629 (memory leak inside highlight_string()). (Hannes, Ilia) + . Fixed Bug #53632 (infinite loop with x87 fpu). (Scott, Rasmus) - Core: . Fixed bug #48484 (array_product() always returns 0 for an empty array). diff --git a/Zend/zend_strtod.c b/Zend/zend_strtod.c index bc2ca97b19..311d4385d3 100644 --- a/Zend/zend_strtod.c +++ b/Zend/zend_strtod.c @@ -2035,7 +2035,7 @@ ZEND_API double zend_strtod (CONST char *s00, char **se) int bb2, bb5, bbe, bd2, bd5, bbbits, bs2, c, dsign, e, e1, esign, i, j, k, nd, nd0, nf, nz, nz0, sign; CONST char *s, *s0, *s1; - double aadj, aadj1, adj; + volatile double aadj, aadj1, adj; volatile _double rv, rv0; Long L; ULong y, z; -- 2.40.0