summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrank M. Kromann <fmk@php.net>2001-08-01 16:55:24 +0000
committerFrank M. Kromann <fmk@php.net>2001-08-01 16:55:24 +0000
commit2794a0e69a866189703b94377bcf1c9528d70ec8 (patch)
treed58fccd638959a2f30201ee025a47997adef19b1
parentfa6b5cdde71e8f6641756fbaa8b24e375451379b (diff)
downloadphp-git-2794a0e69a866189703b94377bcf1c9528d70ec8.tar.gz
These new math functions are not supported on Win32
-rw-r--r--ext/standard/basic_functions.c6
-rw-r--r--ext/standard/math.c11
2 files changed, 17 insertions, 0 deletions
diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c
index daa30e78da..7848552f1d 100644
--- a/ext/standard/basic_functions.c
+++ b/ext/standard/basic_functions.c
@@ -289,9 +289,11 @@ function_entry basic_functions[] = {
PHP_FE(sinh, NULL)
PHP_FE(cosh, NULL)
PHP_FE(tanh, NULL)
+#ifndef PHP_WIN32
PHP_FE(asinh, NULL)
PHP_FE(acosh, NULL)
PHP_FE(atanh, NULL)
+#endif
PHP_FE(pi, NULL)
PHP_FE(pow, NULL)
PHP_FE(exp, NULL)
@@ -301,10 +303,14 @@ function_entry basic_functions[] = {
PHP_FE(exp2, NULL)
PHP_FE(exp10, NULL)
PHP_FE(log2, NULL)
+#ifndef PHP_WIN32
PHP_FE(cbrt, NULL)
+#endif
PHP_FE(hypot, NULL)
+#ifndef PHP_WIN32
PHP_FE(expm1, NULL)
PHP_FE(log1p, NULL)
+#endif
PHP_FE(deg2rad, NULL)
PHP_FE(rad2deg, NULL)
PHP_FE(bindec, NULL)
diff --git a/ext/standard/math.c b/ext/standard/math.c
index 2201fc0489..a4fcc63357 100644
--- a/ext/standard/math.c
+++ b/ext/standard/math.c
@@ -312,6 +312,8 @@ PHP_FUNCTION(tanh)
}
/* }}} */
+
+#ifndef PHP_WIN32
/* {{{ proto double asinh(double number)
Returns the inverse hyperbolic sine of the number,
i.e. the value whose hyperbolic sine is number */
@@ -363,6 +365,7 @@ PHP_FUNCTION(atanh)
}
/* }}} */
+#endif
/* {{{ proto double pi(void)
Returns an approximation of pi */
@@ -442,6 +445,8 @@ PHP_FUNCTION(exp10)
}
/* }}} */
+
+#ifndef PHP_WIN32
/* {{{ proto double expm1(double number)
Returns exp(number) - 1, computed in a way that accurate even when
the value of number is close to zero */
@@ -476,6 +481,8 @@ PHP_FUNCTION(log1p)
}
/* }}} */
+
+#endif
/* {{{ proto double log(double number)
Returns the natural logarithm of the number */
@@ -542,6 +549,8 @@ PHP_FUNCTION(sqrt)
}
/* }}} */
+
+#ifndef PHP_WIN32
/* {{{ proto double cbrt(double number)
Returns the cubic root of the number */
@@ -558,6 +567,8 @@ PHP_FUNCTION(cbrt)
}
/* }}} */
+#endif
+
/* {{{ proto double hypot(double num1, double num2)
Returns sqrt( num1*num1 + num2*num2) */