|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #73681 Incorrect description for PHP 7 and higher
Submitted: 2016-12-08 03:03 UTC Modified: 2016-12-08 13:10 UTC
From: danielklein at airpost dot net Assigned: cmb (profile)
Status: Closed Package: PHP options/info functions
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2016-12-08 03:03 UTC] danielklein at airpost dot net
From manual page:

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, ...'


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2016-12-08 11:43 UTC]
-Status: Open +Status: Verified -Package: Documentation problem +Package: PHP options/info functions -Assigned To: +Assigned To: cmb
 [2016-12-08 13:09 UTC]
Automatic comment from SVN on behalf of cmb
Log: Fix #73681: Incorrect description for PHP 7 and higher
 [2016-12-08 13:10 UTC]
-Status: Verified +Status: Closed
 [2016-12-08 13:10 UTC]
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:06 UTC]
Automatic comment on behalf of cmb
Log: Fix #73681: Incorrect description for PHP 7 and higher
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Fri May 07 19:01:24 2021 UTC