Bug #69188 [Com]: The constant INF is set to float(0)
| From: | manuel at moosnet dot de | Date: | Sun, 24 Jan 2021 16:46:17 +0000 |
| Subject: | Bug #69188 [Com]: The constant INF is set to float(0) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-231740@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=69188&edit=1
ID: 69188
Comment by: manuel at moosnet dot de
Reported by: manuel at moosnet dot de
Summary: The constant INF is set to float(0)
Status: No Feedback
Type: Bug
Package: Math related
Operating System: SunOS 5.10
PHP Version: Irrelevant
Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
All seems to be fine, I reran the test script in the strato shared environment. In the meantime, the
only PHP versions available are 8.0.0 and 7.2.34, and both correctly print float(INF).
Thanks!
Previous Comments:
------------------------------------------------------------------------
[2021-01-24 04:22:08] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
------------------------------------------------------------------------
[2021-01-13 16:12:28] cmb@php.net
If this is still unresolved for any of the actively supported PHP
versions[1], could someone with access to such an environment
please provide a suitable PR for the respective detection code[2]?
[1] <https://www.php.net/supported-versions.php>
[2] <https://github.com/php/php-src/blob/php-7.4.14/Zend/Zend.m4#L423-L447>
------------------------------------------------------------------------
[2016-12-20 04:43:43] tycholursen at gmail dot com
Hi, I just tested with a fresh install of MediaWiki 1.27.1 and php version 7 on Strato servers.
Seems to work OK for me now.
------------------------------------------------------------------------
[2016-12-15 11:35:39] wagner at strato-rz dot de
We currently have patched our PHP 7 version to determine the value of "INF" correctly.
The problem is that "configure" does not work with Solaris 10 correctly and defines
HAVE_ATOF_ACCEPTS_INF without checking the value of atof(INF).
I have to put in some more work to provide a proper patch for this to php.net. If you are
experiencing this error please switch to PHP 7.
------------------------------------------------------------------------
[2016-09-07 16:59:12] chris at chrisjean dot com
@manuel at moosnet dot de
You suggested that the tooling used to provision the servers could be the source of the issue. I
suggest that you dig deeper into that as I ran your sample C code on a fresh install of Solaris 11.3
and did not see a problem. This points to a problem in your provisioning process, not a
compatibility problem with Solaris.
$ uname -a
SunOS solaris 5.11 11.3 i86pc i386 i86pc
$ ./atof
__i386__ Inf
atof: Inf
fract: Inf
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=69188
--
Edit this bug report at https://bugs.php.net/bug.php?id=69188&edit=1