Bug #74039 [Com]: is_infinite(-INF) returns false
| From: | wilkowski dot kontakt at gmail dot com | Date: | Fri, 03 Feb 2017 15:15:20 +0000 |
| Subject: | Bug #74039 [Com]: is_infinite(-INF) returns false | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-207151@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
Comment by: wilkowski dot kontakt at gmail dot com
Reported by: bugs dot php dot net at chsc dot dk
Summary: is_infinite(-INF) returns false
Status: Open
Type: Bug
Package: Math related
Operating System: Alpine Linux
PHP Version: 7.0.15
Block user comment: N
Private report: N
New Comment:
On php 5.4.39-0+deb7u2
var_dump(is_infinite(-INF)); // true
Previous Comments:
------------------------------------------------------------------------
[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