cvs: phpdoc-fr /reference/bzip2 configure.xml reference.xml /reference/bzip2/functions bzclose.xml bzcompress.xml bzdecompress.xml bzerrno.xml
bzerror.xml bzerrstr.xml bzflush.xml bzopen.xml bzread.xml bzwrite.xml

From: Date: Fri, 05 Mar 2004 09:43:25 +0000
Subject: cvs: phpdoc-fr /reference/bzip2 configure.xml reference.xml /reference/bzip2/functions bzclose.xml bzcompress.xml bzdecompress.xml bzerrno.xml
bzerror.xml bzerrstr.xml bzflush.xml bzopen.xml bzread.xml bzwrite.xml
Groups: php.doc.fr 
Request: Send a blank email to doc-fr+get-1993@lists.php.net to get a copy of this message
didou Fri Mar 5 04:43:25 2004 EDT Modified files: /phpdoc-fr/reference/bzip2 configure.xml reference.xml /phpdoc-fr/reference/bzip2/functions bzclose.xml bzcompress.xml bzdecompress.xml bzerrno.xml bzerror.xml bzerrstr.xml bzflush.xml bzopen.xml bzread.xml bzwrite.xml Log: sync with en

http://cvs.php.net/diff.php/phpdoc-fr/reference/bzip2/configure.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-fr/reference/bzip2/configure.xml diff -u phpdoc-fr/reference/bzip2/configure.xml:1.4 phpdoc-fr/reference/bzip2/configure.xml:1.5 --- phpdoc-fr/reference/bzip2/configure.xml:1.4 Wed Feb 25 07:34:15 2004 +++ phpdoc-fr/reference/bzip2/configure.xml Fri Mar 5 04:43:23 2004 @@ -1,14 +1,13 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.4 Maintainer: didou Status: ready --> <section id="bzip2.installation"> &reftitle.install; <para> - Le support <acronym>bzip2</acronym> par PHP n'est pas activé par + Le support <acronym>bzip2</acronym> par &php; n'est pas activé par défaut. Vous devez utiliser l'option de configuration <option role="configure">--with-bz2[=DIR]</option> - lors de la compilation de PHP pour l'activer. Ce module requiert la librairie - bzip2/libbzip2, version &gt;= 1.0.x. + lors de la compilation de &php; pour l'activer. </para> </section> http://cvs.php.net/diff.php/phpdoc-fr/reference/bzip2/reference.xml?r1=1.7&r2=1.8&ty=u Index: phpdoc-fr/reference/bzip2/reference.xml diff -u phpdoc-fr/reference/bzip2/reference.xml:1.7 phpdoc-fr/reference/bzip2/reference.xml:1.8 --- phpdoc-fr/reference/bzip2/reference.xml:1.7 Wed Feb 25 07:34:15 2004 +++ phpdoc-fr/reference/bzip2/reference.xml Fri Mar 5 04:43:23 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.7 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.8 $ --> +<!-- EN-Revision: 1.5 Maintainer: didou Status: ready --> <reference id="ref.bzip2"> <title>Compression Bzip2</title> <titleabbrev>Bzip2</titleabbrev> @@ -9,17 +9,17 @@ &reftitle.intro; <para> Les fonctions bzip2 servent à lire et écrire dans les fichiers compressés - avec la méthode bzip2 (.bz2). Il est possible de lire et d'écrire de tels - fichiers. + avec la méthode bzip2 (.bz2). </para> </section> - + <section id="bzip2.requirements"> &reftitle.required; <para> Ce module utilise les fonctions de la librairie <ulink url="&url.bzip2;">bzip2</ulink>, de Julian Seward pour écrire et lire des fichier bzip2 (.bz2) de manière transparente. + Ce module requière un version de bzip2/libbzip2 &gt;= 1.0.x. </para> </section> @@ -53,28 +53,28 @@ <programlisting role="php"> <![CDATA[ <?php - $filename = "/tmp/fichier_de_test.bz2"; - $str = "Ceci est une chaîne de test.\n"; +$filename = "/tmp/fichier_de_test.bz2"; +$str = "Ceci est une chaîne de test.\n"; // ouvre le fichier en écriture - $bz = bzopen($filename, "w"); +$bz = bzopen($filename, "w"); // écrit une chaîne dans le fichier - bzwrite($bz, $str); +bzwrite($bz, $str); // ferme le fichier - bzclose($bz); +bzclose($bz); // ouvre le fichier en lecture - $bz = bzopen($filename, "r"); +$bz = bzopen($filename, "r"); // lit 10 caractères - print bzread($bz, 10); +echo bzread($bz, 10); // affiche tout le reste du fichier, puis le ferme - print bzread($bz); +echo bzread($bz); - bzclose($bz); +bzclose($bz); ?> ]]> </programlisting> http://cvs.php.net/diff.php/phpdoc-fr/reference/bzip2/functions/bzclose.xml?r1=1.7&r2=1.8&ty=u Index: phpdoc-fr/reference/bzip2/functions/bzclose.xml diff -u phpdoc-fr/reference/bzip2/functions/bzclose.xml:1.7 phpdoc-fr/reference/bzip2/functions/bzclose.xml:1.8 --- phpdoc-fr/reference/bzip2/functions/bzclose.xml:1.7 Tue Feb 24 13:08:22 2004 +++ phpdoc-fr/reference/bzip2/functions/bzclose.xml Fri Mar 5 04:43:25 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.7 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/bzip2.xml, last change in rev 1.10 --> -<!-- last change to 'bzclose' in en/ tree in rev 1.1 --> +<!-- $Revision: 1.8 $ --> +<!-- EN-Revision: 1.2 Maintainer: didou Status: ready --> <refentry id="function.bzclose"> <refnamediv> <refname>bzclose</refname> @@ -24,11 +21,10 @@ </para> <para> Le pointeur de fichier <parameter>bz</parameter> doit être - valide, et avoir été ouvert avec <function>bzopen</function>. + valide et avoir été ouvert avec <function>bzopen</function>. </para> <para> - Voir aussi - <function>bzopen</function>. + Voir aussi <function>bzopen</function>. </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-fr/reference/bzip2/functions/bzcompress.xml?r1=1.8&r2=1.9&ty=u Index: phpdoc-fr/reference/bzip2/functions/bzcompress.xml diff -u phpdoc-fr/reference/bzip2/functions/bzcompress.xml:1.8 phpdoc-fr/reference/bzip2/functions/bzcompress.xml:1.9 --- phpdoc-fr/reference/bzip2/functions/bzcompress.xml:1.8 Tue Feb 24 13:08:22 2004 +++ phpdoc-fr/reference/bzip2/functions/bzcompress.xml Fri Mar 5 04:43:25 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.8 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/bzip2.xml, last change in rev 1.10 --> -<!-- last change to 'bzcompress' in en/ tree in rev 1.1 --> +<!-- $Revision: 1.9 $ --> +<!-- EN-Revision: 1.3 Maintainer: didou Status: ready --> <refentry id="function.bzcompress"> <refnamediv> <refname>bzcompress</refname> @@ -51,8 +48,7 @@ </example> </para> <para> - Voir aussi - <function>bzdecompress</function>. + Voir aussi <function>bzdecompress</function>. </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-fr/reference/bzip2/functions/bzdecompress.xml?r1=1.9&r2=1.10&ty=u Index: phpdoc-fr/reference/bzip2/functions/bzdecompress.xml diff -u phpdoc-fr/reference/bzip2/functions/bzdecompress.xml:1.9 phpdoc-fr/reference/bzip2/functions/bzdecompress.xml:1.10 --- phpdoc-fr/reference/bzip2/functions/bzdecompress.xml:1.9 Tue Feb 24 13:08:22 2004 +++ phpdoc-fr/reference/bzip2/functions/bzdecompress.xml Fri Mar 5 04:43:25 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.9 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/bzip2.xml, last change in rev 1.10 --> -<!-- last change to 'bzdecompress' in en/ tree in rev 1.1 --> +<!-- $Revision: 1.10 $ --> +<!-- EN-Revision: 1.4 Maintainer: didou Status: ready --> <refentry id="function.bzdecompress"> <refnamediv> <refname>bzdecompress</refname> @@ -34,25 +31,24 @@ <programlisting role="php"> <![CDATA[ <?php - $start_str = "Phrase &grave; compresser"; - $bzstr = bzcompress($start_str); +$start_str = "Phrase à compresser"; +$bzstr = bzcompress($start_str); - echo "Compression : "; - echo $bzstr; - echo "\n<br />\n"; +echo "Compression : "; +echo $bzstr; +echo "\n<br />\n"; - $str = bzdecompress($bzstr); - echo "Décompression : "; - echo $str; - echo "\n<br />\n"; +$str = bzdecompress($bzstr); +echo "Décompression : "; +echo $str; +echo "\n<br />\n"; ?> ]]> </programlisting> </example> </para> <para> - Voir aussi - <function>bzcompress</function>. + Voir aussi <function>bzcompress</function>. </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-fr/reference/bzip2/functions/bzerrno.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/bzip2/functions/bzerrno.xml diff -u phpdoc-fr/reference/bzip2/functions/bzerrno.xml:1.5 phpdoc-fr/reference/bzip2/functions/bzerrno.xml:1.6 --- phpdoc-fr/reference/bzip2/functions/bzerrno.xml:1.5 Tue Feb 24 13:08:22 2004 +++ phpdoc-fr/reference/bzip2/functions/bzerrno.xml Fri Mar 5 04:43:25 2004 @@ -1,13 +1,10 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/bzip2.xml, last change in rev 1.10 --> -<!-- last change to 'bzerrno' in en/ tree in rev 1.1 --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.2 Maintainer: didou Status: ready --> <refentry id="function.bzerrno"> <refnamediv> <refname>bzerrno</refname> - <refpurpose>Retourne le numéro d'erreur bzip2</refpurpose> + <refpurpose>Retourne le code d'erreur bzip2</refpurpose> </refnamediv> <refsect1> <title>Description</title> @@ -16,9 +13,8 @@ <methodparam><type>resource</type><parameter>bz</parameter></methodparam> </methodsynopsis> <para> - <function>bzerrno</function> retourne le numéro d'erreur - du fichier bz2 représenté par le pointeur - <parameter>bz</parameter>. + <function>bzerrno</function> retourne le code d'erreur + du fichier bz2 représenté par le pointeur <parameter>bz</parameter>. </para> <para> Voir aussi http://cvs.php.net/diff.php/phpdoc-fr/reference/bzip2/functions/bzerror.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-fr/reference/bzip2/functions/bzerror.xml diff -u phpdoc-fr/reference/bzip2/functions/bzerror.xml:1.6 phpdoc-fr/reference/bzip2/functions/bzerror.xml:1.7 --- phpdoc-fr/reference/bzip2/functions/bzerror.xml:1.6 Tue Feb 24 13:08:22 2004 +++ phpdoc-fr/reference/bzip2/functions/bzerror.xml Fri Mar 5 04:43:25 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/bzip2.xml, last change in rev 1.10 --> -<!-- last change to 'bzerror' in en/ tree in rev 1.1 --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.2 Maintainer: didou Status: ready --> <refentry id="function.bzerror"> <refnamediv> <refname>bzerror</refname> @@ -18,10 +15,9 @@ <methodparam><type>resource</type><parameter>bz</parameter></methodparam> </methodsynopsis> <para> - <function>bzerror</function> retourne le numéro et le message d'erreur - du fichier bz2 représenté par le pointeur - <parameter>bz</parameter>. <function>bzerror</function> retourne - un tableau associatif. + <function>bzerror</function> retourne un tableau associatif avec + le numéro et le message d'erreur du fichier bz2 représenté par le + pointeur <parameter>bz</parameter>. </para> <para> <example> @@ -29,9 +25,11 @@ <programlisting role="php"> <![CDATA[ <?php - $error = bzerror($bz); - echo $error["errno"]; - echo $error["errstr"]; + +$error = bzerror($bz); +echo $error["errno"]; +echo $error["errstr"]; + ?> ]]> </programlisting> http://cvs.php.net/diff.php/phpdoc-fr/reference/bzip2/functions/bzerrstr.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/bzip2/functions/bzerrstr.xml diff -u phpdoc-fr/reference/bzip2/functions/bzerrstr.xml:1.5 phpdoc-fr/reference/bzip2/functions/bzerrstr.xml:1.6 --- phpdoc-fr/reference/bzip2/functions/bzerrstr.xml:1.5 Tue Feb 24 13:08:22 2004 +++ phpdoc-fr/reference/bzip2/functions/bzerrstr.xml Fri Mar 5 04:43:25 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/bzip2.xml, last change in rev 1.10 --> -<!-- last change to 'bzerrstr' in en/ tree in rev 1.1 --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.2 Maintainer: didou Status: ready --> <refentry id="function.bzerrstr"> <refnamediv> <refname>bzerrstr</refname> @@ -17,8 +14,7 @@ </methodsynopsis> <para> <function>bzerrstr</function> retourne le message d'erreur - du fichier bz2 représenté par le pointeur - <parameter>bz</parameter>. + du fichier bz2 représenté par le pointeur <parameter>bz</parameter>. </para> <para> Voir aussi http://cvs.php.net/diff.php/phpdoc-fr/reference/bzip2/functions/bzflush.xml?r1=1.7&r2=1.8&ty=u Index: phpdoc-fr/reference/bzip2/functions/bzflush.xml diff -u phpdoc-fr/reference/bzip2/functions/bzflush.xml:1.7 phpdoc-fr/reference/bzip2/functions/bzflush.xml:1.8 --- phpdoc-fr/reference/bzip2/functions/bzflush.xml:1.7 Tue Feb 24 13:08:22 2004 +++ phpdoc-fr/reference/bzip2/functions/bzflush.xml Fri Mar 5 04:43:25 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.7 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/bzip2.xml, last change in rev 1.10 --> -<!-- last change to 'bzflush' in en/ tree in rev 1.1 --> +<!-- $Revision: 1.8 $ --> +<!-- EN-Revision: 1.2 Maintainer: didou Status: ready --> <refentry id="function.bzflush"> <refnamediv> <refname>bzflush</refname> @@ -18,8 +15,9 @@ <methodparam><type>resource</type><parameter>bz</parameter></methodparam> </methodsynopsis> <para> - <function>bzflush</function> vide les buffers d'écriture du - fichier représenté par <parameter>bz</parameter>. + <function>bzflush</function> force l'écriture de toutes les données + bzip2 mises en tampon pour le fichier représenté par + <parameter>bz</parameter>. </para> <para> &return.success; http://cvs.php.net/diff.php/phpdoc-fr/reference/bzip2/functions/bzopen.xml?r1=1.7&r2=1.8&ty=u Index: phpdoc-fr/reference/bzip2/functions/bzopen.xml diff -u phpdoc-fr/reference/bzip2/functions/bzopen.xml:1.7 phpdoc-fr/reference/bzip2/functions/bzopen.xml:1.8 --- phpdoc-fr/reference/bzip2/functions/bzopen.xml:1.7 Tue Feb 24 13:08:22 2004 +++ phpdoc-fr/reference/bzip2/functions/bzopen.xml Fri Mar 5 04:43:25 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.7 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/bzip2.xml, last change in rev 1.10 --> -<!-- last change to 'bzopen' in en/ tree in rev 1.1 --> +<!-- $Revision: 1.8 $ --> +<!-- EN-Revision: 1.5 Maintainer: didou Status: ready --> <refentry id="function.bzopen"> <refnamediv> <refname>bzopen</refname> @@ -33,18 +30,19 @@ <programlisting role="php"> <![CDATA[ <?php - $file = "/tmp/foo.bz2"; - $bz = bzopen($file, "r") or die("Impossible d'ouvrir $file"); - bzclose($bz); +$file = "/tmp/foo.bz2"; +$bz = bzopen($file, "r") or die("Impossible d'ouvrir $file"); + +bzclose($bz); + ?> ]]> </programlisting> </example> </para> <para> - Voir aussi - <function>bzclose</function>. + Voir aussi <function>bzclose</function>. </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-fr/reference/bzip2/functions/bzread.xml?r1=1.7&r2=1.8&ty=u Index: phpdoc-fr/reference/bzip2/functions/bzread.xml diff -u phpdoc-fr/reference/bzip2/functions/bzread.xml:1.7 phpdoc-fr/reference/bzip2/functions/bzread.xml:1.8 --- phpdoc-fr/reference/bzip2/functions/bzread.xml:1.7 Tue Feb 24 13:08:22 2004 +++ phpdoc-fr/reference/bzip2/functions/bzread.xml Fri Mar 5 04:43:25 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.7 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/bzip2.xml, last change in rev 1.10 --> -<!-- last change to 'bzread' in en/ tree in rev 1.1 --> +<!-- $Revision: 1.8 $ --> +<!-- EN-Revision: 1.6 Maintainer: didou Status: ready --> <refentry id="function.bzread"> <refnamediv> <refname>bzread</refname> @@ -34,17 +31,19 @@ <programlisting role="php"> <![CDATA[ <?php - $file = "/tmp/foo.bz2"; - $bz = bzopen($file, "r") or die("Impossible d'ouvrir $file"); - - $decompressed_file = ''; - while (!feof($bz)) { - $decompressed_file .= bzread($bz, 4096); - } - bzclose($bz); - echo "Le contenu de $file est :<br />\n"; - echo $decompressed_file; +$file = "/tmp/foo.bz2"; +$bz = bzopen($file, "r") or die("Impossible d'ouvrir $file"); + +$decompressed_file = ''; +while (!feof($bz)) { + $decompressed_file .= bzread($bz, 4096); +} +bzclose($bz); + +echo "Le contenu de $file est :<br />\n"; +echo $decompressed_file; + ?> ]]> </programlisting> http://cvs.php.net/diff.php/phpdoc-fr/reference/bzip2/functions/bzwrite.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-fr/reference/bzip2/functions/bzwrite.xml diff -u phpdoc-fr/reference/bzip2/functions/bzwrite.xml:1.6 phpdoc-fr/reference/bzip2/functions/bzwrite.xml:1.7 --- phpdoc-fr/reference/bzip2/functions/bzwrite.xml:1.6 Tue Feb 24 13:08:22 2004 +++ phpdoc-fr/reference/bzip2/functions/bzwrite.xml Fri Mar 5 04:43:25 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/bzip2.xml, last change in rev 1.10 --> -<!-- last change to 'bzwrite' in en/ tree in rev 1.1 --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.2 Maintainer: didou Status: ready --> <refentry id="function.bzwrite"> <refnamediv> <refname>bzwrite</refname> @@ -22,19 +19,20 @@ <parameter>data</parameter> dans le fichier bzip2 représenté par <parameter>bz</parameter>. Si le paramètre optionnel <parameter>length</parameter> est fourni, l'écriture sera - arrêtée après l'écriture de - <parameter>length</parameter> octets (non compressés), - ou la fin de la chaîne (le premier qui survient). + arrêtée après l'écriture de <parameter>length</parameter> + octets (non compressés), ou la fin de la chaîne (le premier + qui survient). </para> <para> <example> - <title>Exemple <function>bzwrite</function></title> + <title>Exemple avec <function>bzwrite</function></title> <programlisting role="php"> <![CDATA[ <?php - $str = "données non compressées"; - $bz = bzopen("/tmp/foo.bz2", "w"); - bzwrite($bz, $str, strlen($str)); +$str = "données non compressées"; +$bz = bzopen("/tmp/foo.bz2", "w"); +bzwrite($bz, $str, strlen($str)); +bzclose($bz); ?> ]]> </programlisting>
« previous php.doc.fr (#1993) next »