]> granicus.if.org Git - php/commitdiff
Switch to using error_docref
authorJason Greene <jason@php.net>
Mon, 11 Nov 2002 16:34:39 +0000 (16:34 +0000)
committerJason Greene <jason@php.net>
Mon, 11 Nov 2002 16:34:39 +0000 (16:34 +0000)
# Satisfy all those named Mar[ck]us

ext/standard/math.c

index 50b3e27c59f1161646d859b342c26ca759cfd82f..0c2fcedb502598c210d5ecfc88acbeb172e9b503 100644 (file)
@@ -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)));