From: Jason Greene Date: Mon, 11 Nov 2002 16:34:39 +0000 (+0000) Subject: Switch to using error_docref X-Git-Tag: php-4.3.0RC1~108 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f8aae8702cdd531621772ea2920a0df5f8be1ae4;p=php Switch to using error_docref # Satisfy all those named Mar[ck]us --- 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)));