From: Andrey Hristov Date: Tue, 10 May 2005 12:50:53 +0000 (+0000) Subject: rename math_std_dev to math_standard_deviation (the API wasn't published X-Git-Tag: php-5.0.1b1~267 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f12b14078e48d4385e75c2bb63bd6a60d367eba0;p=php rename math_std_dev to math_standard_deviation (the API wasn't published yet) --- diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index 047982d43b..d524f159a7 100644 --- a/ext/standard/basic_functions.c +++ b/ext/standard/basic_functions.c @@ -415,7 +415,7 @@ function_entry basic_functions[] = { PHP_FE(base_convert, NULL) PHP_FE(number_format, NULL) PHP_FE(fmod, NULL) - PHP_FE(math_std_dev, NULL) + PHP_FE(math_standard_deviation, NULL) PHP_FE(math_variance, NULL) #ifdef HAVE_INET_NTOP PHP_NAMED_FE(inet_ntop, php_inet_ntop, NULL) diff --git a/ext/standard/math.c b/ext/standard/math.c index 68a61ddfbe..62bce33389 100644 --- a/ext/standard/math.c +++ b/ext/standard/math.c @@ -1193,9 +1193,9 @@ PHP_FUNCTION(math_variance) } /* }}} */ -/* {{{ proto float math_std_dev(array a [, bool sample]) +/* {{{ proto float math_standard_deviation(array a[, bool sample = false]) Returns the standard deviation */ -PHP_FUNCTION(math_std_dev) +PHP_FUNCTION(math_standard_deviation) { zval *arr; zend_bool sample = 0; diff --git a/ext/standard/php_math.h b/ext/standard/php_math.h index 385f34b142..70c30a8a68 100644 --- a/ext/standard/php_math.h +++ b/ext/standard/php_math.h @@ -59,7 +59,7 @@ PHP_FUNCTION(octdec); PHP_FUNCTION(base_convert); PHP_FUNCTION(number_format); PHP_FUNCTION(fmod); -PHP_FUNCTION(math_std_dev); +PHP_FUNCTION(math_standard_deviation); PHP_FUNCTION(math_variance); PHP_FUNCTION(deg2rad); PHP_FUNCTION(rad2deg);