Doc #73681 [Opn->Ver]: Incorrect description for PHP 7 and higher
| From: | cmb@php.net | Date: | Thu, 08 Dec 2016 11:43:45 +0000 |
| Subject: | Doc #73681 [Opn->Ver]: Incorrect description for PHP 7 and higher | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-14194@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: Open
+Status: Verified
Type: Documentation Problem
-Package: Documentation problem
+Package: PHP options/info functions
PHP Version: Irrelevant
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
Previous Comments:
------------------------------------------------------------------------
[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