From 3e96e971f8fa9aa32a5165e5f9e2d17365da003c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustavo=20Andr=C3=A9=20dos=20Santos=20Lopes?= Date: Mon, 7 Dec 2009 08:15:28 +0000 Subject: [PATCH] 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 --- reference/rar/rararchive.xml | 2 +- reference/rar/rararchive/close.xml | 7 ++----- reference/rar/rararchive/getentry.xml | 8 +++---- reference/rar/rararchive/list.xml | 16 +++++++------- reference/rar/rararchive/open.xml | 30 +++++++++++++-------------- 5 files changed, 30 insertions(+), 33 deletions(-) diff --git a/reference/rar/rararchive.xml b/reference/rar/rararchive.xml index c402214974..7eddc9296b 100644 --- a/reference/rar/rararchive.xml +++ b/reference/rar/rararchive.xml @@ -13,7 +13,7 @@ &reftitle.intro; 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). diff --git a/reference/rar/rararchive/close.xml b/reference/rar/rararchive/close.xml index ca23965d5a..190f761e4f 100644 --- a/reference/rar/rararchive/close.xml +++ b/reference/rar/rararchive/close.xml @@ -21,11 +21,8 @@ RarArchiverarfile - + Close RAR archive and free all allocated resources. - - &warn.undocumented.func; - @@ -69,7 +66,7 @@ The RAR entries returned by RarArchive::getEntry and RarArchive::list 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. diff --git a/reference/rar/rararchive/getentry.xml b/reference/rar/rararchive/getentry.xml index dfc10c7723..af8765bcd2 100644 --- a/reference/rar/rararchive/getentry.xml +++ b/reference/rar/rararchive/getentry.xml @@ -74,10 +74,10 @@ 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) 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) diff --git a/reference/rar/rararchive/open.xml b/reference/rar/rararchive/open.xml index 1fdbdea799..96f7e1edb7 100644 --- a/reference/rar/rararchive/open.xml +++ b/reference/rar/rararchive/open.xml @@ -28,7 +28,7 @@ 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. @@ -50,8 +50,8 @@ 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. @@ -80,20 +80,20 @@ 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. getStream(); if ($stream === FALSE) - die("Failed opening first file"); + die("Failed opening first file"); rar_close($rar_arch);