#43363 [Opn->Csd]: Incorrect documentation for ZipArchive::locateName

From: Date: Thu, 22 Nov 2007 00:07:16 +0000
Subject: #43363 [Opn->Csd]: Incorrect documentation for ZipArchive::locateName
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-257@lists.php.net to get a copy of this message
ID: 43363 Updated by: felipe@php.net Reported By: nick at magic-wand dot net -Status: Open +Status: Closed Bug Type: Documentation problem Operating System: N/A PHP Version: Irrelevant 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: ------------------------------------------------------------------------ [2007-11-21 16:18:32] nick at magic-wand dot net Description: ------------ Example 2704 on the documentation page for ZipArchive::locateName incorrectly tests for equivalence with true for the zip->open() operation. This causes the example to exit when there's no error. Reproduce code: --------------- Lines 18-20 currently read: if ($zip->open($file) === TRUE) { exit('failed'); } They should read: if ($zip->open($file) !== TRUE) { exit('failed'); } ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=43363&edit=1

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