From: Anatol Belski Date: Fri, 3 Oct 2014 20:17:02 +0000 (+0200) Subject: fix asinh delivering -0 when the arg is 0 X-Git-Tag: PRE_PHP7_REMOVALS~89^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e9b23401514a642b58084784305c1d19cf86a823;p=php fix asinh delivering -0 when the arg is 0 --- diff --git a/ext/standard/math.c b/ext/standard/math.c index 4185cd48f4..7014e6c938 100644 --- a/ext/standard/math.c +++ b/ext/standard/math.c @@ -220,7 +220,7 @@ static double php_asinh(double z) return(asinh(z)); #else # ifdef _WIN64 - if (z > 0) { + if (z >= 0) { return log(z + sqrt(z * z + 1)); } else {