summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Hristov <andrey@php.net>2005-05-10 12:50:53 +0000
committerAndrey Hristov <andrey@php.net>2005-05-10 12:50:53 +0000
commitf12b14078e48d4385e75c2bb63bd6a60d367eba0 (patch)
tree050998bbefe26ae8541c23d1e8be507509dc9d8a
parent924b4c016df24937be1259c76d3bfa47aae76149 (diff)
downloadphp-git-f12b14078e48d4385e75c2bb63bd6a60d367eba0.tar.gz
rename math_std_dev to math_standard_deviation (the API wasn't published
yet)
-rw-r--r--ext/standard/basic_functions.c2
-rw-r--r--ext/standard/math.c4
-rw-r--r--ext/standard/php_math.h2
3 files changed, 4 insertions, 4 deletions
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);