php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #74288
Patch isinf.patch revision 2017-03-22 05:39 UTC by apyhalov at gmail dot com

Patch isinf.patch for Compile Failure Bug #74288

Patch version 2017-03-22 05:39 UTC

Return to Bug #74288 | Download this patch
Patch Revisions:

Developer: apyhalov@gmail.com

--- php-7.0.17/main/php_config.h.in.1	2017-03-22 08:24:22.347354375 +0300
+++ php-7.0.17/main/php_config.h.in	2017-03-22 08:29:54.118129529 +0300
@@ -2530,7 +2530,7 @@
 #endif
 
 #ifndef zend_isnan
-#ifdef HAVE_DECL_ISNAN
+#if defined(HAVE_DECL_ISNAN) && (HAVE_DECL_ISNAN != 0)
 #define zend_isnan(a) isnan(a)
 #elif defined(HAVE_FPCLASS)
 #define zend_isnan(a) ((fpclass(a) == FP_SNAN) || (fpclass(a) == FP_QNAN))
@@ -2539,7 +2539,7 @@
 #endif
 #endif
 
-#ifdef HAVE_DECL_ISINF
+#if defined(HAVE_DECL_ISINF) && (HAVE_DECL_ISINF != 0)
 #define zend_isinf(a) isinf(a)
 #elif defined(INFINITY)
 /* Might not work, but is required by ISO C99 */
@@ -2550,7 +2550,7 @@
 #define zend_isinf(a) 0
 #endif
 
-#if defined(HAVE_DECL_ISFINITE)
+#if defined(HAVE_DECL_ISFINITE) && (HAVE_DECL_ISFINITE != 0)
 #define zend_finite(a) isfinite(a)
 #elif defined(HAVE_FINITE)
 #define zend_finite(a) finite(a)
--- php-7.0.17/ext/standard/config.m4.~1~	2017-03-14 14:26:13.000000000 +0300
+++ php-7.0.17/ext/standard/config.m4	2017-03-22 08:32:11.363048397 +0300
@@ -421,7 +421,7 @@
 #include <math.h>
 #include <stdlib.h>
 
-#ifdef HAVE_DECL_ISNAN
+#if defined(HAVE_DECL_ISNAN) && (HAVE_DECL_ISNAN != 0)
 #define zend_isnan(a) isnan(a)
 #elif defined(HAVE_FPCLASS)
 #define zend_isnan(a) ((fpclass(a) == FP_SNAN) || (fpclass(a) == FP_QNAN))
@@ -452,7 +452,7 @@
 #include <math.h>
 #include <stdlib.h>
 
-#ifdef HAVE_DECL_ISINF
+#if defined(HAVE_DECL_ISINF) && (HAVE_DECL_ISINF != 0)
 #define zend_isinf(a) isinf(a)
 #elif defined(INFINITY)
 /* Might not work, but is required by ISO C99 */
@@ -486,7 +486,7 @@
 #include <math.h>
 #include <stdlib.h>
 
-#ifdef HAVE_DECL_ISINF
+#if defined(HAVE_DECL_ISINF) && (HAVE_DECL_ISINF != 0)
 #define zend_isinf(a) isinf(a)
 #elif defined(INFINITY)
 /* Might not work, but is required by ISO C99 */
@@ -521,7 +521,7 @@
 #include <math.h>
 #include <stdlib.h>
 
-#ifdef HAVE_DECL_ISNAN
+#if defined(HAVE_DECL_ISNAN) && (HAVE_DECL_ISNAN != 0)
 #define zend_isnan(a) isnan(a)
 #elif defined(HAVE_FPCLASS)
 #define zend_isnan(a) ((fpclass(a) == FP_SNAN) || (fpclass(a) == FP_QNAN))
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Nov 22 11:01:29 2024 UTC