]> granicus.if.org Git - php/commitdiff
Report function name when log() triggers a base warning
authorJason Greene <jason@php.net>
Mon, 11 Nov 2002 05:35:04 +0000 (05:35 +0000)
committerJason Greene <jason@php.net>
Mon, 11 Nov 2002 05:35:04 +0000 (05:35 +0000)
ext/standard/math.c

index 9be11538c61291832fdfc3877a873f210d5f607e..50b3e27c59f1161646d859b342c26ca759cfd82f 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, "base must be greater than 0", Z_DVAL_PP(base));
+                               php_error(E_WARNING, "log(): base must be greater than 0", Z_DVAL_PP(base));
                                RETURN_FALSE;
                        }
                        RETURN_DOUBLE(log(Z_DVAL_PP(num)) / log(Z_DVAL_PP(base)));