cvs: phpdoc-de /reference/bzip2/functions bzread.xml
| From: | Sebastian Nohn | Date: | Fri, 12 Jan 2007 16:16:27 +0000 |
| Subject: | cvs: phpdoc-de /reference/bzip2/functions bzread.xml | ||
| Groups: | php.doc.de | ||
| Request: | Send a blank email to doc-de+get-1724@lists.php.net to get a copy of this message | ||
nohn Fri Jan 12 16:16:27 2007 UTC
Modified files:
/phpdoc-de/reference/bzip2/functions bzread.xml
Log:
* sync
http://cvs.php.net/viewvc.cgi/phpdoc-de/reference/bzip2/functions/bzread.xml?r1=1.3&r2=1.4&diff_format=u
Index: phpdoc-de/reference/bzip2/functions/bzread.xml
diff -u phpdoc-de/reference/bzip2/functions/bzread.xml:1.3
phpdoc-de/reference/bzip2/functions/bzread.xml:1.4
--- phpdoc-de/reference/bzip2/functions/bzread.xml:1.3 Fri May 31 17:47:08 2002
+++ phpdoc-de/reference/bzip2/functions/bzread.xml Fri Jan 12 16:16:27 2007
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.3 $ -->
+<!-- $Revision: 1.4 $ -->
<!-- splitted from ./de/functions/bzip2.xml, last change in rev 1.1 -->
<!-- last change to 'bzread' in en/ tree in rev 1.1 -->
-<!-- EN-Revision: 1.2 Maintainer: nohn Status: ready -->
+<!-- EN-Revision: 1.10 Maintainer: nohn Status: ready -->
<!-- OLD-Revision: 1.20/EN.1.1 -->
<refentry id="function.bzread">
<refnamediv>
@@ -10,7 +10,7 @@
<refpurpose>liest binäre Daten aus einer bzip2 komprimierten Datei</refpurpose>
</refnamediv>
<refsect1>
- <title>Beschreibung</title>
+ <title>&reftitle.description;</title>
<methodsynopsis>
<type>string</type><methodname>bzread</methodname>
<methodparam><type>int</type><parameter>bz</parameter></methodparam>
@@ -27,22 +27,76 @@
<function>bzread</function> 1024 unkomprimierte Bytes lesen.
</para>
<para>
- <example>
- <title><function>bzread</function> Beispiel</title>
- <programlisting role="php">
+ Das Lesen wird beendet, wenn <parameter>length</parameter>
+ unkomprimierte Bytes eingelesen wurden oder das Ende der Datei
+ erreicht wurde.
+ </para>
+ <refsect1 role="parameters">
+ &reftitle.paramters;
+ <para>
+ <variablelist>
+ <varlistentry>
+ <term><parameter>bz</parameter></term>
+ <listitem>
+ <para>
+ Zeiger auf eine erfolgreich mittels
+ <function>bzopen</function> geöffnete Datei.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><parameter>length</parameter></term>
+ <listitem>
+ <para>
+ Wenn nichts angegeben ist, liest <function>bzread</function>
+ 1024 unkomprimierte Bytes.
+ </para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </para>
+ </refsect1>
+ <refsect1 role="returnvalues">
+ &reftitle.returnvalues;
+ <para>
+ Returns the uncompressed data, or &false; on error.
+ </para>
+ </refsect1>
+ <refsect1 role="examples">
+ &reftitle.examples;
+ <para>
+ <example>
+ <title><function>bzread</function> Beispiel</title>
+ <programlisting role="php">
<![CDATA[
<?php
-$bz = bzopen("/tmp/foo.bz2", "r");
-$str = bzread($bz, 2048);
-print( $str );
+$file = "/tmp/foo.bz2";
+$bz = bzopen($file, "r") or die("Couldn't open $file");
+
+$decompressed_file = '';
+while (!feof($bz)) {
+ $decompressed_file .= bzread($bz, 4096);
+}
+bzclose($bz);
+
+echo "The contents of $file are: <br />\n";
+echo $decompressed_file;
?>
]]>
- </programlisting>
- </example>
- </para>
- <para>
- Siehe auch <function>bzwrite</function> und
<function>bzopen</function>.
- </para>
+ </programlisting>
+ </example>
+ </para>
+ </refsect1>
+ <refsect1 role="seealso">
+ &reftitle.seealso;
+ <para>
+ <simplelist>
+ <member><function>bzwrite</function></member>
+ <member><function>feof</function></member>
+ <member><function>bzopen</function></member>
+ </simplelist>
+ </para>
+ </refsect1>
</refsect1>
</refentry>