1
0
mirror of https://github.com/php/php-src.git synced 2026-03-27 01:32:22 +01:00
This commit is contained in:
Ilia Alshanetsky
2010-08-06 20:16:11 +00:00
parent 231d8dd526
commit fbe6499d46

View File

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