mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Fix example (bug #39573: Documentation wrong on ZipArchive:renameName)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@224209 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
5f80806a40
commit
7242b3e707
1 changed files with 3 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.3 $ -->
|
||||
<!-- $Revision: 1.4 $ -->
|
||||
<refentry id="function.ziparchive-renamename">
|
||||
<refnamediv>
|
||||
<refname>ZipArchive::renameName</refname>
|
||||
|
@ -53,9 +53,9 @@
|
|||
<![CDATA[
|
||||
<?php
|
||||
$zip = new ZipArchive;
|
||||
$res = $zip->open('test.zip')
|
||||
$res = $zip->open('test.zip');
|
||||
if ($res === TRUE) {
|
||||
$zip->renameIndex('currentname.txt','newname.txt');
|
||||
$zip->renameName('currentname.txt','newname.txt');
|
||||
$zip->close();
|
||||
} else {
|
||||
echo 'failed, code:' . $res;
|
||||
|
|
Loading…
Reference in a new issue