Doc #73681 [Ver->Csd]: Incorrect description for PHP 7 and higher
| From: | cmb@php.net | Date: | Thu, 08 Dec 2016 13:10:20 +0000 |
| Subject: | Doc #73681 [Ver->Csd]: Incorrect description for PHP 7 and higher | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-14195@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=73681&edit=1
ID: 73681
Updated by: cmb@php.net
Reported by: danielklein at airpost dot net
Summary: Incorrect description for PHP 7 and higher
-Status: Verified
+Status: Closed
Type: Documentation Problem
Package: PHP options/info functions
PHP Version: Irrelevant
Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2016-12-08 13:09:19] cmb@php.net
Automatic comment from SVN on behalf of cmb
Revision: http://svn.php.net/viewvc/?view=revision&revision=341341
Log: Fix #73681: Incorrect description for PHP 7 and higher
------------------------------------------------------------------------
[2016-12-08 03:03:22] danielklein at airpost dot net
Description:
------------
---
From manual page: http://www.php.net/function.version-compare
---
The following code example is incorrect if running on PHP greater than 5:
if (version_compare(PHP_VERSION, '5.0.0', '>=')) {
echo 'I am using PHP 5, my version: ' . PHP_VERSION . "\n";
}
It should say 'I am using *at least* PHP 5, ...'
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=73681&edit=1