Doc #80292 [NEW]: Incorrect use of code in manual's example codes.
| From: | astrixoblix dot b at gmail dot com | Date: | Wed, 28 Oct 2020 12:27:00 +0000 |
| Subject: | Doc #80292 [NEW]: Incorrect use of code in manual's example codes. | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-18040@lists.php.net to get a copy of this message | ||
From: astrixoblix dot b at gmail dot com
Operating system:
PHP version: Irrelevant
Package: Documentation problem
Bug Type: Documentation Problem
Bug description:Incorrect use of code in manual's example codes.
Description:
------------
---
From manual page: https://php.net/ziparchive.locatename
---
In example #1 line #13 there's an additional exclamation mark by
mistake.
I supposed the code has been changed from !$zip->status to $zip->status
!= ZipArchive::ER_OK but correct code got lost during patches.
affected line:
if (!$zip->status == ZipArchive::ER_OK) {
correct line:
if ($zip->status != ZipArchive::ER_OK) {
--
Edit bug report at https://bugs.php.net/bug.php?id=80292&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=80292&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=80292&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=80292&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=80292&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=80292&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=80292&r=support
Expected behavior: https://bugs.php.net/fix.php?id=80292&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=80292&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=80292&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=80292&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=80292&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=80292&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=80292&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=80292&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=80292&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=80292&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=80292&r=mysqlcfg