Doc #76432 [Ver->Csd]: Incorrect documentation of Phar constants

From: Date: Sat, 09 Jun 2018 20:59:59 +0000
Subject: Doc #76432 [Ver->Csd]: Incorrect documentation of Phar constants
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-15758@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: Verified +Status: Closed Type: Documentation Problem Package: PHAR related Operating System: Ubuntu PHP Version: 7.2.6 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: ------------------------------------------------------------------------ [2018-06-09 20:59:28] cmb@php.net Automatic comment from SVN on behalf of cmb Revision: http://svn.php.net/viewvc/?view=revision&revision=345111 Log: Fix #76432: Incorrect documentation of Phar constants ------------------------------------------------------------------------ [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

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