summaryrefslogtreecommitdiff
path: root/ext/standard/math.c
diff options
context:
space:
mode:
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)));