summaryrefslogtreecommitdiff
path: root/ext/standard/math.c
diff options
context:
space:
mode:
authorJason Greene <jason@php.net>2002-11-11 16:34:39 +0000
committerJason Greene <jason@php.net>2002-11-11 16:34:39 +0000
commitf8aae8702cdd531621772ea2920a0df5f8be1ae4 (patch)
tree4b6053508f8055172cdc6b89b5e0477de257c382 /ext/standard/math.c
parent32e8ee9beed73afdc54f4de8d507d175ca5a366a (diff)
downloadphp-git-f8aae8702cdd531621772ea2920a0df5f8be1ae4.tar.gz
Switch to using error_docref
# Satisfy all those named Mar[ck]us
Diffstat (limited to 'ext/standard/math.c')
-rw-r--r--ext/standard/math.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/math.c b/ext/standard/math.c
index 50b3e27c59..0c2fcedb50 100644
--- a/ext/standard/math.c
+++ b/ext/standard/math.c
@@ -542,7 +542,7 @@ PHP_FUNCTION(log)
convert_to_double_ex(base);
if (Z_DVAL_PP(base) <= 0.0) {
- php_error(E_WARNING, "log(): base must be greater than 0", Z_DVAL_PP(base));
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "base must be greater than 0");
RETURN_FALSE;
}
RETURN_DOUBLE(log(Z_DVAL_PP(num)) / log(Z_DVAL_PP(base)));