|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-12-02 07:23 UTC] bjori@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 11:00:02 2025 UTC |
Description: ------------ This should be a quickie. In example 1 for ZipArchive::renameName, instead of specifying $zip->renameName in the code, you use $zip->renameIndex, which will obviously cause an error. Reproduce code: --------------- Here's what you have: <?php $zip = new ZipArchive; $res = $zip->open('test.zip') if ($res === TRUE) { $zip->renameIndex('currentname.txt','newname.txt'); $zip->close(); } else { echo 'failed, code:' . $res; } ?> Should be <?php $zip = new ZipArchive; $res = $zip->open('test.zip') if ($res === TRUE) { $zip->renameName('currentname.txt','newname.txt'); $zip->close(); } else { echo 'failed, code:' . $res; } ?>