mirror of
https://github.com/php/php-src.git
synced 2026-04-05 15:12:39 +02:00
- Fix build
This commit is contained in:
@@ -691,7 +691,7 @@ PHP_FUNCTION(log)
|
||||
RETURN_FALSE;
|
||||
}
|
||||
if (base == 1) {
|
||||
RETURN_DOUBLE(NAN);
|
||||
RETURN_DOUBLE(php_get_nan());
|
||||
} else {
|
||||
RETURN_DOUBLE(log(num) / log(base));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user