e9029bf48e
PHP 7.1.x builds upon 7.0.x, adding new features (so far) * Iterable type. * HTTP/2 Server Push Support in ext/curl & other ext/curl improvements * Fix inconsistent behavior in $this variable * Square bracket syntax for array destructuring assignment * Create closure from callable * More precise float values * Asynchronous Signal Handling (without ticks) in ext/pcntl. * Additional Context in pcntl_signal Handler NOTE: this is BETA, not suitable for production environment
13 lines
525 B
C
13 lines
525 B
C
$NetBSD: patch-ext_standard_basic__functions.c,v 1.1 2016/08/04 14:09:03 jdolecek Exp $
|
|
|
|
--- ext/standard/basic_functions.c.orig 2015-06-23 17:33:33.000000000 +0000
|
|
+++ ext/standard/basic_functions.c
|
|
@@ -3499,7 +3499,7 @@ PHPAPI double php_get_nan(void) /* {{{ *
|
|
|
|
PHPAPI double php_get_inf(void) /* {{{ */
|
|
{
|
|
-#if HAVE_HUGE_VAL_INF
|
|
+#if defined(HAVE_HUGE_VAL_INF) || defined(__vax__)
|
|
return HUGE_VAL;
|
|
#elif defined(__i386__) || defined(_X86_) || defined(ALPHA) || defined(_ALPHA) || defined(__alpha)
|
|
double val = 0.0;
|