php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #70907 incorrect info about INF
Submitted: 2015-11-13 08:18 UTC Modified: 2015-12-17 11:46 UTC
From: slevy1 at pipeline dot com Assigned: cmb (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: n/a
Private report: No CVE-ID: None
 [2015-11-13 08:18 UTC] slevy1 at pipeline dot com
Description:
------------
---
From manual page: http://www.php.net/math.constants
---
 "All constants without a labeled PHP version above are available starting with PHP 4.0.0."

Except that INF is a constant that is only recognized by PHP4.3.6.  Previous versions of PHP 4 do not recognize the unlabeled constant.

Expected result:
----------------
I expected PHP4.0.0 to recognize the constant INF.  It does not -- just perceives the string "INF".


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-11-13 08:36 UTC] requinix@php.net
How about the comment says they're available for all versions of PHP 5+? Given that's all the docs are supposed to cover now anyways.
 [2015-11-13 21:42 UTC] slevy1 at pipeline dot com
I suggest that it is more helpful to provide users the whole truth instead of just a slice. The truth is plain to see that INF became available as a constant in PHP4.3.6.
 [2015-12-17 11:44 UTC] cmb@php.net
-Assigned To: +Assigned To: cmb
 [2015-12-17 11:44 UTC] cmb@php.net
> The truth is plain to see that INF became available as a
> constant in PHP4.3.6.

Well, the truth is that PHP 4 is unsupported since several years,
and most of its documentation has already been removed from the
manual (the rest pending due to lack of time), so it wouldn't make
sense to document INF as available from PHP 4.3.6 on.
 [2015-12-17 11:45 UTC] cmb@php.net
Automatic comment from SVN on behalf of cmb
Revision: http://svn.php.net/viewvc/?view=revision&revision=338283
Log: fixed #70907: incorrect info about INF
 [2015-12-17 11:46 UTC] cmb@php.net
-Status: Assigned +Status: Closed
 [2015-12-17 11:46 UTC] cmb@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.


 [2020-02-07 06:07 UTC] phpdocbot@php.net
Automatic comment on behalf of cmb
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=3cd079536ed302105f7f368509d8e7bf6a583384
Log: fixed #70907: incorrect info about INF
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 16:01:31 2024 UTC