Doc #76432 [Opn->Ver]: Incorrect documentation of Phar constants
| From: | cmb@php.net | Date: | Sat, 09 Jun 2018 20:44:41 +0000 |
| Subject: | Doc #76432 [Opn->Ver]: Incorrect documentation of Phar constants | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-15757@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=76432&edit=1
ID: 76432
Updated by: cmb@php.net
Reported by: daniel dot jeffery at eigendev dot com
Summary: Incorrect documentation of Phar constants
-Status: Open
+Status: Verified
Type: Documentation Problem
Package: PHAR related
Operating System: Ubuntu
PHP Version: 7.2.6
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
Previous Comments:
------------------------------------------------------------------------
[2018-06-08 22:35:26] daniel dot jeffery at eigendev dot com
Description:
------------
---
From manual page: http://www.php.net/phar.constants
---
There are three errors in the documentation of Phar class constants:
The constant "Phar::SAME" does not exist.
The value of constant "Phar::PHP" is 0, not 1
The value of constant "Phar::PHPS" is 1, not 2
Test script:
---------------
var_dump(Phar::PHP);
var_dump(Phar::PHPS);
var_dump(Phar::SAME);
Expected result:
----------------
int(1)
int(2)
int(0)
Actual result:
--------------
int(0)
int(1)
Fatal error: Uncaught Error: Undefined class constant 'SAME'
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=76432&edit=1