1
0
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:
Felipe Pena
2010-08-06 22:21:13 +00:00
parent 5b8a974886
commit 232ae3df01

View File

@@ -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));
}