|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2020-10-28 12:27 UTC] 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) { PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 16:00:01 2025 UTC |
Well, to clarify, the code works as it should because it is equivalent to: if (!($zip->status == ZipArchive::ER_OK)) { However, that is clumsy and misleading.