Bug #74039 [Opn->Csd]: is_infinite(-INF) returns false

From: Date: Sun, 05 Feb 2017 17:15:46 +0000
Subject: Bug #74039 [Opn->Csd]: is_infinite(-INF) returns false
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-207188@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=74039&edit=1 ID: 74039 Updated by: nikic@php.net Reported by: bugs dot php dot net at chsc dot dk Summary: is_infinite(-INF) returns false -Status: Open +Status: Closed Type: Bug Package: Math related Operating System: Alpine Linux PHP Version: 7.0.15 -Assigned To: +Assigned To: nikic Block user comment: N Private report: N New Comment: Fixed by https://github.com/php/php-src/commit/9ea0949f43959ff0cf519e7a10ef9de7a538cde3. Previous Comments: ------------------------------------------------------------------------ [2017-02-05 01:51:03] ajf@php.net See also: bug #73954 ------------------------------------------------------------------------ [2017-02-03 15:15:19] wilkowski dot kontakt at gmail dot com On php 5.4.39-0+deb7u2 var_dump(is_infinite(-INF)); // true ------------------------------------------------------------------------ [2017-02-03 14:56:40] g dot sokol99 at g-sokol dot info On Arch linux PHP 7.1.1 Everything is ok. ------------------------------------------------------------------------ [2017-02-03 06:26:30] bugs dot php dot net at chsc dot dk Description: ------------ is_infinite() is broken in the PHP binary included in Alpine Linux. It returns TRUE for is_infinite(INF), but FALSE for is_infinite(-INF). Test script: --------------- var_dump(is_infinite(-INF)); Expected result: ---------------- bool(true) Actual result: -------------- bool(false) ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=74039&edit=1

« previous php.bugs (#207188) next »