Index: ext/standard/math.c =================================================================== RCS file: /repository/php-src/ext/standard/math.c,v retrieving revision 1.131.2.2.2.6.2.4 diff -u -p -r1.131.2.2.2.6.2.4 math.c --- ext/standard/math.c 21 Feb 2008 17:50:03 -0000 1.131.2.2.2.6.2.4 +++ ext/standard/math.c 4 May 2008 10:34:34 -0000 @@ -284,8 +284,6 @@ PHP_FUNCTION(tanh) } /* }}} */ -#if !defined(PHP_WIN32) && !defined(NETWARE) -#ifdef HAVE_ASINH /* {{{ proto float asinh(float number) Returns the inverse hyperbolic sine of the number, i.e. the value whose hyperbolic sine is number */ PHP_FUNCTION(asinh) @@ -295,11 +293,15 @@ PHP_FUNCTION(asinh) if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "d", &num) == FAILURE) { return; } +#if HAVE_ASINH RETURN_DOUBLE(asinh(num)); +#else + RETURN_DOUBLE(php_asinh(num)); +#endif } /* }}} */ -#endif /* HAVE_ASINH */ +#if !defined(PHP_WIN32) && !defined(NETWARE) #ifdef HAVE_ACOSH /* {{{ proto float acosh(float number) Returns the inverse hyperbolic cosine of the number, i.e. the value whose hyperbolic cosine is number */ Index: ext/standard/php_math.h =================================================================== RCS file: /repository/php-src/ext/standard/php_math.h,v retrieving revision 1.28.2.2.2.3.2.1 diff -u -p -r1.28.2.2.2.3.2.1 php_math.h --- ext/standard/php_math.h 31 Dec 2007 07:17:15 -0000 1.28.2.2.2.3.2.1 +++ ext/standard/php_math.h 4 May 2008 10:34:34 -0000 @@ -80,9 +80,7 @@ PHP_FUNCTION(sinh); PHP_FUNCTION(cosh); PHP_FUNCTION(tanh); -#ifdef HAVE_ASINH PHP_FUNCTION(asinh); -#endif #ifdef HAVE_ACOSH PHP_FUNCTION(acosh); #endif Index: ext/standard/basic_functions.c =================================================================== RCS file: /repository/php-src/ext/standard/basic_functions.c,v retrieving revision 1.725.2.31.2.64.2.29 diff -u -p -r1.725.2.31.2.64.2.29 basic_functions.c --- ext/standard/basic_functions.c 21 Apr 2008 14:32:57 -0000 1.725.2.31.2.64.2.29 +++ ext/standard/basic_functions.c 4 May 2008 10:34:34 -0000 @@ -1933,12 +1933,10 @@ ZEND_BEGIN_ARG_INFO(arginfo_tanh, 0) ZEND_ARG_INFO(0, number) ZEND_END_ARG_INFO() -#ifdef HAVE_ASINH static ZEND_BEGIN_ARG_INFO(arginfo_asinh, 0) ZEND_ARG_INFO(0, number) ZEND_END_ARG_INFO() -#endif #ifdef HAVE_ACOSH static @@ -3292,9 +3290,7 @@ const zend_function_entry basic_function PHP_FE(cosh, arginfo_cosh) PHP_FE(tanh, arginfo_tanh) -#ifdef HAVE_ASINH PHP_FE(asinh, arginfo_asinh) -#endif #ifdef HAVE_ACOSH PHP_FE(acosh, arginfo_acosh) #endif