mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 08:58:56 +00:00
Replaced tabs with spaces and correction in close.xml
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@291808 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
3ceffd99b7
commit
3e96e971f8
5 changed files with 30 additions and 33 deletions
|
@ -13,7 +13,7 @@
|
|||
&reftitle.intro;
|
||||
<para>
|
||||
This class represents a RAR archive, which may be formed by several volumes (parts) and which contains
|
||||
a number of RAR entries (i.e., files, directories and other special objects such as symbolic links).
|
||||
a number of RAR entries (i.e., files, directories and other special objects such as symbolic links).
|
||||
</para>
|
||||
</section>
|
||||
<!-- }}} -->
|
||||
|
|
|
@ -21,11 +21,8 @@
|
|||
<methodparam><type>RarArchive</type><parameter>rarfile</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
|
||||
Close RAR archive and free all allocated resources.
|
||||
</para>
|
||||
|
||||
&warn.undocumented.func;
|
||||
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="parameters">
|
||||
|
@ -69,7 +66,7 @@
|
|||
The RAR entries returned by <methodname>RarArchive::getEntry</methodname>
|
||||
and <methodname>RarArchive::list</methodname> are now invalidated when
|
||||
calling this method. This means that all instance methods called for
|
||||
such entries and not guaranteed to succeed.
|
||||
such entries and not guaranteed to succeed.
|
||||
</entry>
|
||||
</row>
|
||||
</tbody>
|
||||
|
|
|
@ -74,10 +74,10 @@
|
|||
<?php
|
||||
$rar_arch = RarArchive::open('solid.rar');
|
||||
if ($rar_arch === FALSE)
|
||||
die("Could not open RAR archive.");
|
||||
die("Could not open RAR archive.");
|
||||
$rar_entry = $rar_arch->getEntry('tese.txt');
|
||||
if ($rar_entry === FALSE)
|
||||
die("Could get such entry");
|
||||
die("Could get such entry");
|
||||
echo get_class($rar_entry)."\n";
|
||||
echo $rar_entry;
|
||||
$rar_arch->close();
|
||||
|
@ -101,10 +101,10 @@ RarEntry for file "tese.txt" (23b93a7a)
|
|||
<?php
|
||||
$rar_arch = rar_open('solid.rar');
|
||||
if ($rar_arch === FALSE)
|
||||
die("Could not open RAR archive.");
|
||||
die("Could not open RAR archive.");
|
||||
$rar_entry = rar_entry_get($rar_arch, 'tese.txt');
|
||||
if ($rar_entry === FALSE)
|
||||
die("Could get such entry");
|
||||
die("Could get such entry");
|
||||
echo get_class($rar_entry)."\n";
|
||||
echo $rar_entry;
|
||||
rar_close($rar_arch);
|
||||
|
|
|
@ -59,17 +59,17 @@
|
|||
<?php
|
||||
$rar_arch = RarArchive::open('solid.rar');
|
||||
if ($rar_arch === FALSE)
|
||||
die("Could not open RAR archive.");
|
||||
die("Could not open RAR archive.");
|
||||
|
||||
$rar_entries = $rar_arch->list();
|
||||
if ($rar_entries === FALSE)
|
||||
die("Could retrieve entries.");
|
||||
die("Could retrieve entries.");
|
||||
|
||||
echo "Found " . count($rar_entries) . " entries.\n";
|
||||
|
||||
foreach ($rar_entries as $e) {
|
||||
echo $e;
|
||||
echo "\n";
|
||||
echo $e;
|
||||
echo "\n";
|
||||
}
|
||||
$rar_arch->close();
|
||||
?>
|
||||
|
@ -93,17 +93,17 @@ RarEntry for file "unrardll.txt" (2ed64b6e)
|
|||
<?php
|
||||
$rar_arch = rar_open('solid.rar');
|
||||
if ($rar_arch === FALSE)
|
||||
die("Could not open RAR archive.");
|
||||
die("Could not open RAR archive.");
|
||||
|
||||
$rar_entries = rar_list($rar_arch);
|
||||
if ($rar_entries === FALSE)
|
||||
die("Could retrieve entries.");
|
||||
die("Could retrieve entries.");
|
||||
|
||||
echo "Found " . count($rar_entries) . " entries.\n";
|
||||
|
||||
foreach ($rar_entries as $e) {
|
||||
echo $e;
|
||||
echo "\n";
|
||||
echo $e;
|
||||
echo "\n";
|
||||
}
|
||||
rar_close($rar_arch);
|
||||
?>
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
<note>
|
||||
<para>
|
||||
If opening a multi-volume archive, the path of the first volume should be passed as the first parameter.
|
||||
Otherwise, not all files will be shown. This is by design.
|
||||
Otherwise, not all files will be shown. This is by design.
|
||||
</para>
|
||||
</note>
|
||||
</refsect1>
|
||||
|
@ -50,8 +50,8 @@
|
|||
<listitem>
|
||||
<para>
|
||||
A plain password, if needed to decrypt the headers. It will also be used by default
|
||||
if encrypted files are found. Note that the files may have
|
||||
different passwords in respect to the headers and among them.
|
||||
if encrypted files are found. Note that the files may have
|
||||
different passwords in respect to the headers and among them.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
@ -80,20 +80,20 @@
|
|||
<?php
|
||||
$rar_arch = RarArchive::open('encrypted_headers.rar', 'samplepassword');
|
||||
if ($rar_arch === FALSE)
|
||||
die("Failed opening file");
|
||||
|
||||
die("Failed opening file");
|
||||
|
||||
$entries = $rar_arch->list();
|
||||
if ($entries === FALSE)
|
||||
die("Failed fetching entries");
|
||||
die("Failed fetching entries");
|
||||
|
||||
echo "Found " . count($entries) . " files.\n";
|
||||
|
||||
if (empty($entries))
|
||||
die("No valid entries found.");
|
||||
|
||||
die("No valid entries found.");
|
||||
|
||||
$stream = reset($entries)->getStream();
|
||||
if ($stream === FALSE)
|
||||
die("Failed opening first file");
|
||||
die("Failed opening first file");
|
||||
|
||||
$rar_arch->close();
|
||||
|
||||
|
@ -122,20 +122,20 @@ Encrypted file 1 contents.
|
|||
<?php
|
||||
$rar_arch = rar_open('encrypted_headers.rar', 'samplepassword');
|
||||
if ($rar_arch === FALSE)
|
||||
die("Failed opening file");
|
||||
|
||||
die("Failed opening file");
|
||||
|
||||
$entries = rar_list($rar_arch);
|
||||
if ($entries === FALSE)
|
||||
die("Failed fetching entries");
|
||||
die("Failed fetching entries");
|
||||
|
||||
echo "Found " . count($entries) . " files.\n";
|
||||
|
||||
if (empty($entries))
|
||||
die("No valid entries found.");
|
||||
|
||||
die("No valid entries found.");
|
||||
|
||||
$stream = reset($entries)->getStream();
|
||||
if ($stream === FALSE)
|
||||
die("Failed opening first file");
|
||||
die("Failed opening first file");
|
||||
|
||||
rar_close($rar_arch);
|
||||
|
||||
|
|
Loading…
Reference in a new issue