Doc #76432 [NEW]: Incorrect documentation of Phar constants

From: Date: Fri, 08 Jun 2018 22:35:27 +0000
Subject: Doc #76432 [NEW]: Incorrect documentation of Phar constants
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-15756@lists.php.net to get a copy of this message
From: daniel dot jeffery at eigendev dot com Operating system: Ubuntu PHP version: 7.2.6 Package: PHAR related Bug Type: Documentation Problem Bug description:Incorrect documentation of Phar constants 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 bug report at https://bugs.php.net/bug.php?id=76432&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=76432&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=76432&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=76432&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=76432&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=76432&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=76432&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=76432&r=needscript Try newer version: https://bugs.php.net/fix.php?id=76432&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=76432&r=support Expected behavior: https://bugs.php.net/fix.php?id=76432&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=76432&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=76432&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=76432&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=76432&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=76432&r=dst IIS Stability: https://bugs.php.net/fix.php?id=76432&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=76432&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=76432&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=76432&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=76432&r=mysqlcfg

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