mirror of
https://github.com/php/php-src.git
synced 2026-03-27 01:32:22 +01:00
WS
This commit is contained in:
@@ -691,10 +691,10 @@ PHP_FUNCTION(log)
|
||||
RETURN_FALSE;
|
||||
}
|
||||
if (base == 1) {
|
||||
RETURN_DOUBLE(NAN);
|
||||
RETURN_DOUBLE(NAN);
|
||||
} else {
|
||||
RETURN_DOUBLE(log(num) / log(base));
|
||||
}
|
||||
RETURN_DOUBLE(log(num) / log(base));
|
||||
}
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user