derick          Mon Jan 22 19:59:21 2007 UTC

  Modified files:              (Branch: PHP_4_4)
    /php-src    NEWS 
    /php-src/ext/standard       config.m4 
  Log:
  - Backported a fix in the configure tests to detect the "rounding fuzz".
  
  
http://cvs.php.net/viewvc.cgi/php-src/NEWS?r1=1.1247.2.920.2.185&r2=1.1247.2.920.2.186&diff_format=u
Index: php-src/NEWS
diff -u php-src/NEWS:1.1247.2.920.2.185 php-src/NEWS:1.1247.2.920.2.186
--- php-src/NEWS:1.1247.2.920.2.185     Mon Jan 22 19:51:38 2007
+++ php-src/NEWS        Mon Jan 22 19:59:21 2007
@@ -5,6 +5,8 @@
   (Dmitry)
 - Fixed bug #36248 (CURLOPT_HEADERFUNCTION, couldn't set the function in the
   class). (Ilia)
+- Backported a fix in the configure tests to detect the "rounding fuzz".
+  (Derick, Joe Orton)
 
 - Moved extensions to PECL:
   . ext/ovrimos (Derick)
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/config.m4?r1=1.47.2.16&r2=1.47.2.16.2.1&diff_format=u
Index: php-src/ext/standard/config.m4
diff -u php-src/ext/standard/config.m4:1.47.2.16 
php-src/ext/standard/config.m4:1.47.2.16.2.1
--- php-src/ext/standard/config.m4:1.47.2.16    Thu Dec 30 07:02:18 2004
+++ php-src/ext/standard/config.m4      Mon Jan 22 19:59:21 2007
@@ -1,4 +1,4 @@
-dnl $Id: config.m4,v 1.47.2.16 2004/12/30 07:02:18 sniper Exp $ -*- sh -*-
+dnl $Id: config.m4,v 1.47.2.16.2.1 2007/01/22 19:59:21 derick Exp $ -*- sh -*-
 
 divert(3)dnl
 
@@ -250,8 +250,12 @@
 AC_MSG_CHECKING([whether rounding works as expected])
 AC_TRY_RUN([
 #include <math.h>
+  /* keep this out-of-line to prevent use of gcc inline floor() */
+  double somefn(double n) {
+    return floor(n*pow(10,2) + 0.5);
+  }
   int main() {
-    return floor(0.045*pow(10,2) + 0.5)/10.0 != 0.5;
+    return somefn(0.045)/10.0 != 0.5;
   }
 ],[
   PHP_ROUND_FUZZ=0.5

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to