Doc #70907 [Opn]: incorrect info about INF

From: Date: Thu, 17 Dec 2015 11:44:41 +0000
Subject: Doc #70907 [Opn]: incorrect info about INF
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-12947@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=70907&edit=1 ID: 70907 Updated by: cmb@php.net Reported by: slevy1 at pipeline dot com Summary: incorrect info about INF Status: Open Type: Documentation Problem Package: Documentation problem Operating System: n/a PHP Version: Irrelevant -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: > 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. Previous Comments: ------------------------------------------------------------------------ [2015-11-13 21:42:29] 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-11-13 08:36:19] 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 08:18:27] 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". ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=70907&edit=1

« previous php.doc.bugs (#12947) next »