Doc #80292 [Opn->Ver]: Incorrect use of code in manual's example codes.

From: Date: Wed, 28 Oct 2020 12:53:38 +0000
Subject: Doc #80292 [Opn->Ver]: Incorrect use of code in manual's example codes.
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-18041@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=80292&edit=1 ID: 80292 Updated by: cmb@php.net Reported by: astrixoblix dot b at gmail dot com Summary: Incorrect use of code in manual's example codes. -Status: Open +Status: Verified Type: Documentation Problem -Package: Documentation problem +Package: Zip Related PHP Version: Irrelevant -Assigned To: +Assigned To: cmb Block user comment: N Private report: N Previous Comments: ------------------------------------------------------------------------ [2020-10-28 12:27:00] astrixoblix dot b at gmail dot com 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 this bug report at https://bugs.php.net/bug.php?id=80292&edit=1

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