b6cb9f9f85
Key new features: traits, a shortened array syntax, a built-in webserver for testing purposes and more. A migration guide: http://php.net/migration54 Full changes: http://www.php.net/ChangeLog-5.php
15 lines
553 B
C
15 lines
553 B
C
$NetBSD: patch-ext_standard_basic__functions.c,v 1.1 2012/06/16 05:21:55 taca Exp $
|
|
|
|
Work around VAX FP lack of INF
|
|
|
|
--- ext/standard/basic_functions.c.orig 2012-05-08 05:22:56.000000000 +0000
|
|
+++ ext/standard/basic_functions.c
|
|
@@ -3498,7 +3498,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;
|