Bug #69188 [Opn->Fbk]: The constant INF is set to float(0)
| From: | cmb@php.net | Date: | Wed, 13 Jan 2021 16:12:29 +0000 |
| Subject: | Bug #69188 [Opn->Fbk]: The constant INF is set to float(0) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-231541@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
Updated by: cmb@php.net
Reported by: manuel at moosnet dot de
Summary: The constant INF is set to float(0)
-Status: Open
+Status: Feedback
Type: Bug
Package: Math related
Operating System: SunOS 5.10
PHP Version: Irrelevant
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
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>
Previous Comments:
------------------------------------------------------------------------
[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
------------------------------------------------------------------------
[2016-08-10 15:09:08] tycholursen at gmail dot com
@wagner at strato-rz dot de
Are you aware of the fact that this long standing bug on the Strato servers prevents MediaWiki
version 1.27.0 from functioning?
Please have a look at https://phabricator.wikimedia.org/T139559 for
clarification.
It contains a backtrace of the "ParameterAssertionException: Bad value for parameter maxKeys:
must be above zero" I encountered in an attempt to install MediaWiki 1.27.0 on Strato servers.
Please fix it!
------------------------------------------------------------------------
[2016-07-07 13:19:19] wagner at strato-rz dot de
Just tested it with Solaris 11,
we are seeing the same problem there.
What about my proposed fix ?
(Not defining HAVE_ATOF_ACCEPTS_INF on Solaris machines)
[solaris11 ~]# ./inftest
__i386__: Inf
atof: 0.000000
fract: Inf
[solaris11 ~]# uname -a
SunOS solaris11 5.11 11.3 i86pc i386 i86pc
Just for clarification, it's not a build breaker,
the is_finite() PHP-function seems to be buggy on
Solaris.
------------------------------------------------------------------------
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