mirror of
https://github.com/macintoshplus/doc-fr.git
synced 2026-04-24 00:58:12 +02:00
e1051e00d7
Fix #81488: ext/zip doesn't extract files with special names
126 lines
3.1 KiB
XML
126 lines
3.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- EN-Revision: 5e1a9062c0381edf0d70b172ffd81f668a53b6b6 Maintainer: jpauli Status: ready -->
|
|
<!-- Reviewed: yes -->
|
|
<refentry xml:id="ziparchive.extractto" xmlns="http://docbook.org/ns/docbook">
|
|
<refnamediv>
|
|
<refname>ZipArchive::extractTo</refname>
|
|
<refpurpose>Extrait le contenu de l'archive</refpurpose>
|
|
</refnamediv>
|
|
|
|
<refsect1 role="description">
|
|
&reftitle.description;
|
|
<methodsynopsis>
|
|
<modifier>public</modifier> <type>bool</type><methodname>ZipArchive::extractTo</methodname>
|
|
<methodparam><type>string</type><parameter>pathto</parameter></methodparam>
|
|
<methodparam choice="opt"><type class="union"><type>array</type><type>string</type><type>null</type></type><parameter>files</parameter><initializer>&null;</initializer></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
Extrait l'archive complète ou les fichiers fournis vers un chemin spécifié.
|
|
</para>
|
|
<warning>
|
|
<para>
|
|
Les permissions par défaut pour les fichiers et dossiers extraits
|
|
donnent le plus large accès possible. Ceci peut être restraint en
|
|
définissant le umask courant, qui peut être changé en utilisant
|
|
<function>umask</function>.
|
|
</para>
|
|
</warning>
|
|
</refsect1>
|
|
|
|
<refsect1 role="parameters">
|
|
&reftitle.parameters;
|
|
<para>
|
|
<variablelist>
|
|
<varlistentry>
|
|
<term><parameter>pathto</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
Endroit où l'on doit extraire les fichiers
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term><parameter>files</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
Les entrées à extraire. Ce peut être soit le nom d'une entrée ou un
|
|
tableau de noms
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="returnvalues">
|
|
&reftitle.returnvalues;
|
|
<para>
|
|
&return.success;
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="examples">
|
|
&reftitle.examples;
|
|
<example>
|
|
<title>Extrait toutes les entrées</title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
$zip = new ZipArchive;
|
|
if ($zip->open('test.zip') === TRUE) {
|
|
$zip->extractTo('/mon/dossier/destination/');
|
|
$zip->close();
|
|
echo 'ok';
|
|
} else {
|
|
echo 'échec';
|
|
}
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
</example>
|
|
<example>
|
|
<title>Extrait deux entrées</title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
$zip = new ZipArchive;
|
|
$res = $zip->open('test_im.zip');
|
|
if ($res === TRUE) {
|
|
$zip->extractTo('/mon/dossier/destination/', array('pear_item.gif', 'testfromfile.php'));
|
|
$zip->close();
|
|
echo 'ok';
|
|
} else {
|
|
echo 'échec';
|
|
}
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
</example>
|
|
</refsect1>
|
|
|
|
<refsect1 role="notes">
|
|
&reftitle.notes;
|
|
¬e.extractto-windows;
|
|
</refsect1>
|
|
</refentry>
|
|
<!-- Keep this comment at the end of the file
|
|
Local variables:
|
|
mode: sgml
|
|
sgml-omittag:t
|
|
sgml-shorttag:t
|
|
sgml-minimize-attributes:nil
|
|
sgml-always-quote-attributes:t
|
|
sgml-indent-step:1
|
|
sgml-indent-data:t
|
|
indent-tabs-mode:nil
|
|
sgml-parent-document:nil
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
|
sgml-exposed-tags:nil
|
|
sgml-local-catalogs:nil
|
|
sgml-local-ecat-files:nil
|
|
End:
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
vim: et tw=78 syn=sgml
|
|
vi: ts=1 sw=1
|
|
-->
|