mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Report function name when log() triggers a base warning
This commit is contained in:
parent
84bd2901c4
commit
5e2c75c576
1 changed files with 1 additions and 1 deletions
|
@ -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)));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue