cvs: phpdoc-fr /language types.xml /reference/dbplus reference.xml /reference/filesystem/functions fread.xml parse-ini-file.xml
/reference/image/functions imagechar.xml imagecharup.xml imageloadfont.xml imagepsloadfont.xml imagestring.xml imagettftext.xml
/reference/mysqli/functions mysqli-stmt-send-long-data.xml /reference/var/functions unset.xml

From: Date: Mon, 30 Jan 2006 21:09:40 +0000
Subject: cvs: phpdoc-fr /language types.xml /reference/dbplus reference.xml /reference/filesystem/functions fread.xml parse-ini-file.xml
/reference/image/functions imagechar.xml imagecharup.xml imageloadfont.xml imagepsloadfont.xml imagestring.xml imagettftext.xml
/reference/mysqli/functions mysqli-stmt-send-long-data.xml /reference/var/functions unset.xml
Groups: php.doc.fr 
Request: Send a blank email to doc-fr+get-4807@lists.php.net to get a copy of this message
yannick Mon Jan 30 21:09:40 2006 UTC Modified files: /phpdoc-fr/language types.xml /phpdoc-fr/reference/dbplus reference.xml /phpdoc-fr/reference/filesystem/functions fread.xml parse-ini-file.xml /phpdoc-fr/reference/image/functions imagecharup.xml imagechar.xml imageloadfont.xml imagepsloadfont.xml imagestring.xml imagettftext.xml /phpdoc-fr/reference/mysqli/functions mysqli-stmt-send-long-data.xml /phpdoc-fr/reference/var/functions unset.xml Log: sync with EN

http://cvs.php.net/viewcvs.cgi/phpdoc-fr/language/types.xml?r1=1.79&r2=1.80&diff_format=u Index: phpdoc-fr/language/types.xml diff -u phpdoc-fr/language/types.xml:1.79 phpdoc-fr/language/types.xml:1.80 --- phpdoc-fr/language/types.xml:1.79 Fri Dec 16 15:45:47 2005 +++ phpdoc-fr/language/types.xml Mon Jan 30 21:09:39 2006 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.79 $ --> -<!-- EN-Revision: 1.157 Maintainer: dams Status: ready --> +<!-- $Revision: 1.80 $ --> +<!-- EN-Revision: 1.158 Maintainer: dams Status: ready --> <chapter id="language.types"> <title>Les types</title> @@ -2108,8 +2108,11 @@ </example> <para> Soyez conscient que l'assignation de valeurs dans un tableau - entraîne automatiquement la copie de ces valeurs. Vous devez utiliser - l'opérateur de référence pour copier un tableau par référence. + entraîne automatiquement la copie de ces valeurs. Cela signifie + aussi que le pointeur interne du tableau utilisé par la fonction + <function>current</function> et les fonctions similaires + est initialisé. Vous devez utiliser l'opérateur de référence pour copier + un tableau par référence. <example> <title>Copie dans un tableau par référence</title> <programlisting role="php"> http://cvs.php.net/viewcvs.cgi/phpdoc-fr/reference/dbplus/reference.xml?r1=1.10&r2=1.11&diff_format=u Index: phpdoc-fr/reference/dbplus/reference.xml diff -u phpdoc-fr/reference/dbplus/reference.xml:1.10 phpdoc-fr/reference/dbplus/reference.xml:1.11 --- phpdoc-fr/reference/dbplus/reference.xml:1.10 Mon Sep 5 16:10:37 2005 +++ phpdoc-fr/reference/dbplus/reference.xml Mon Jan 30 21:09:39 2006 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.10 $ --> -<!-- EN-Revision: 1.8 Maintainer: didou Status: ready --> +<!-- $Revision: 1.11 $ --> +<!-- EN-Revision: 1.9 Maintainer: didou Status: ready --> <!-- Purpose: database.vendors --> <!-- Membership: pecl, external --> @@ -92,5 +92,4 @@ vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> - +--> \ No newline at end of file http://cvs.php.net/viewcvs.cgi/phpdoc-fr/reference/filesystem/functions/fread.xml?r1=1.13&r2=1.14&diff_format=u Index: phpdoc-fr/reference/filesystem/functions/fread.xml diff -u phpdoc-fr/reference/filesystem/functions/fread.xml:1.13 phpdoc-fr/reference/filesystem/functions/fread.xml:1.14 --- phpdoc-fr/reference/filesystem/functions/fread.xml:1.13 Sat Jan 28 17:43:08 2006 +++ phpdoc-fr/reference/filesystem/functions/fread.xml Mon Jan 30 21:09:39 2006 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.13 $ --> -<!-- EN-Revision: 1.20 Maintainer: dams Status: ready --> +<!-- $Revision: 1.14 $ --> +<!-- EN-Revision: 1.21 Maintainer: dams Status: ready --> <refentry id="function.fread"> <refnamediv> @@ -19,7 +19,7 @@ octets dans le fichier référencé par <parameter>handle</parameter>. La lecture s'arrête lorsque <parameter>length</parameter> octets ont été lus, ou que l'on a atteint la fin du fichier, ou - lorsqu'un paquet devient disponible ou (pour les flux utilisateurs) lorsque 8192 octets + lorsqu'un paquet devient disponible ou (après avoir ouvert les flux utilisateurs) lorsque 8192 octets ont été lus, le premier des trois survenant. </simpara> <simpara> http://cvs.php.net/viewcvs.cgi/phpdoc-fr/reference/filesystem/functions/parse-ini-file.xml?r1=1.21&r2=1.22&diff_format=u Index: phpdoc-fr/reference/filesystem/functions/parse-ini-file.xml diff -u phpdoc-fr/reference/filesystem/functions/parse-ini-file.xml:1.21 phpdoc-fr/reference/filesystem/functions/parse-ini-file.xml:1.22 --- phpdoc-fr/reference/filesystem/functions/parse-ini-file.xml:1.21 Sun Dec 11 13:17:45 2005 +++ phpdoc-fr/reference/filesystem/functions/parse-ini-file.xml Mon Jan 30 21:09:40 2006 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.21 $ --> -<!-- EN-Revision: 1.22 Maintainer: dams Status: ready --> +<!-- $Revision: 1.22 $ --> +<!-- EN-Revision: 1.23 Maintainer: dams Status: ready --> <refentry id="function.parse-ini-file"> <refnamediv> @@ -67,7 +67,7 @@ Les valeurs <literal>null</literal>, <literal>no</literal> et <literal>false</literal> donnent "", <literal>yes</literal> et <literal>true</literal> donnent "1". - Les caractères <literal>|&amp;~![()"</literal> ne doivent pas être utilisés + Les caractères <literal>{}|&amp;~![()"</literal> ne doivent pas être utilisés n'importe où dans la clé et ont une signification spéciale dans la valeur. </simpara> </note> @@ -181,4 +181,4 @@ vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> +--> \ No newline at end of file http://cvs.php.net/viewcvs.cgi/phpdoc-fr/reference/image/functions/imagecharup.xml?r1=1.12&r2=1.13&diff_format=u Index: phpdoc-fr/reference/image/functions/imagecharup.xml diff -u phpdoc-fr/reference/image/functions/imagecharup.xml:1.12 phpdoc-fr/reference/image/functions/imagecharup.xml:1.13 --- phpdoc-fr/reference/image/functions/imagecharup.xml:1.12 Tue Aug 30 00:02:41 2005 +++ phpdoc-fr/reference/image/functions/imagecharup.xml Mon Jan 30 21:09:40 2006 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.12 $ --> -<!-- EN-Revision: 1.8 Maintainer: didou Status: ready --> +<!-- $Revision: 1.13 $ --> +<!-- EN-Revision: 1.9 Maintainer: didou Status: ready --> <!-- Reviewed: yes --> <refentry id="function.imagecharup"> <refnamediv> @@ -34,7 +34,7 @@ <![CDATA[ <?php -$im = imagecreatetruecolor(100, 100); +$im = imagecreate(100, 100); $string = 'Notez que la première lettre est un N'; http://cvs.php.net/viewcvs.cgi/phpdoc-fr/reference/image/functions/imagechar.xml?r1=1.12&r2=1.13&diff_format=u Index: phpdoc-fr/reference/image/functions/imagechar.xml diff -u phpdoc-fr/reference/image/functions/imagechar.xml:1.12 phpdoc-fr/reference/image/functions/imagechar.xml:1.13 --- phpdoc-fr/reference/image/functions/imagechar.xml:1.12 Tue Aug 30 00:02:41 2005 +++ phpdoc-fr/reference/image/functions/imagechar.xml Mon Jan 30 21:09:40 2006 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.12 $ --> -<!-- EN-Revision: 1.9 Maintainer: didou Status: ready --> +<!-- $Revision: 1.13 $ --> +<!-- EN-Revision: 1.10 Maintainer: didou Status: ready --> <!-- Reviewed: yes --> <refentry id="function.imagechar"> <refnamediv> @@ -34,7 +34,7 @@ <![CDATA[ <?php -$im = imagecreatetruecolor(100, 100); +$im = imagecreate(100, 100); $string = 'PHP'; @@ -78,4 +78,4 @@ vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> +--> \ No newline at end of file http://cvs.php.net/viewcvs.cgi/phpdoc-fr/reference/image/functions/imageloadfont.xml?r1=1.14&r2=1.15&diff_format=u Index: phpdoc-fr/reference/image/functions/imageloadfont.xml diff -u phpdoc-fr/reference/image/functions/imageloadfont.xml:1.14 phpdoc-fr/reference/image/functions/imageloadfont.xml:1.15 --- phpdoc-fr/reference/image/functions/imageloadfont.xml:1.14 Tue Aug 30 00:02:42 2005 +++ phpdoc-fr/reference/image/functions/imageloadfont.xml Mon Jan 30 21:09:40 2006 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.14 $ --> -<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.15 $ --> +<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <refentry id="function.imageloadfont"> <refnamediv> @@ -77,6 +77,7 @@ <programlisting role="php"> <![CDATA[ <?php +header("Content-type: image/png"); $im = imagecreatetruecolor(50, 20); $black = imagecolorallocate($im, 0, 0, 0); $white = imagecolorallocate($im, 255, 255, 255); http://cvs.php.net/viewcvs.cgi/phpdoc-fr/reference/image/functions/imagepsloadfont.xml?r1=1.15&r2=1.16&diff_format=u Index: phpdoc-fr/reference/image/functions/imagepsloadfont.xml diff -u phpdoc-fr/reference/image/functions/imagepsloadfont.xml:1.15 phpdoc-fr/reference/image/functions/imagepsloadfont.xml:1.16 --- phpdoc-fr/reference/image/functions/imagepsloadfont.xml:1.15 Tue Aug 30 00:02:42 2005 +++ phpdoc-fr/reference/image/functions/imagepsloadfont.xml Mon Jan 30 21:09:40 2006 @@ -1,7 +1,8 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.15 $ --> -<!-- EN-Revision: 1.7 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.16 $ --> +<!-- EN-Revision: 1.9 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> + <refentry id="function.imagepsloadfont"> <refnamediv> <refname>imagepsloadfont</refname> @@ -27,14 +28,15 @@ <programlisting role="php"> <![CDATA[ <?php -header ("Content-type: image/jpeg"); +header("Content-type: image/png"); $im = imagecreatetruecolor (350, 45); $black = imagecolorallocate ($im, 0, 0, 0); $white = imagecolorallocate ($im, 255, 255, 255); +imagefilledrectangle($im, 0, 0, 349, 44, $white); $font = imagepsloadfont ("bchbi.pfb"); // ou bien situez un de vos fichiers .pfb imagepstext ($im, "Test ... Ca marche!", $font, 32, $white, $black, 32, 32); imagepsfreefont ($font); -imagejpeg ($im, "", 100); //Meilleure qualité... +imagepng($im); imagedestroy ($im); ?> ]]> @@ -43,7 +45,7 @@ </para> &note.config.t1lib; - + <para> Voir aussi <function>imagepsfreefont</function>. @@ -70,4 +72,4 @@ vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> +--> \ No newline at end of file http://cvs.php.net/viewcvs.cgi/phpdoc-fr/reference/image/functions/imagestring.xml?r1=1.15&r2=1.16&diff_format=u Index: phpdoc-fr/reference/image/functions/imagestring.xml diff -u phpdoc-fr/reference/image/functions/imagestring.xml:1.15 phpdoc-fr/reference/image/functions/imagestring.xml:1.16 --- phpdoc-fr/reference/image/functions/imagestring.xml:1.15 Tue Aug 30 00:02:42 2005 +++ phpdoc-fr/reference/image/functions/imagestring.xml Mon Jan 30 21:09:40 2006 @@ -1,11 +1,12 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.15 $ --> -<!-- EN-Revision: 1.9 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.16 $ --> +<!-- EN-Revision: 1.11 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> + <refentry id="function.imagestring"> <refnamediv> <refname>imagestring</refname> - <refpurpose>Dessine une chaîne horizontale</refpurpose> + <refpurpose>Dessine une chaîne horizontale</refpurpose> </refnamediv> <refsect1> &reftitle.description; @@ -19,13 +20,13 @@ <methodparam><type>int</type><parameter>col</parameter></methodparam> </methodsynopsis> <para> - <function>imagestring</function> dessine une chaîne sur une ligne + <function>imagestring</function> dessine une chaîne sur une ligne horizontale, dans l'image <parameter>image</parameter>, avec le coin - en haut à gauche aux coordonnées - (<parameter>x</parameter>,<parameter>y</parameter>) (le coin supérieur + en haut à gauche aux coordonnées + (<parameter>x</parameter>,<parameter>y</parameter>) (le coin supérieur gauche est l'origine (0,0)) avec la couleur <parameter>color</parameter>. - Si l'argument de police vaut 1, 2, 3, 4 ou 5, une des polices par défaut sera - utilisée). + Si l'argument de police vaut 1, 2, 3, 4 ou 5, une des polices par défaut sera + utilisée). </para> <para> <example> @@ -34,18 +35,18 @@ <![CDATA[ <?php // nouvelle image 100*30 -$im = imagecreatetruecolor(100, 30); +$im = imagecreate(100, 30); // fond blanc et texte bleu $bg = imagecolorallocate($im, 255, 255, 255); $textcolor = imagecolorallocate($im, 0, 0, 255); -// ajout de la phrase en haut à gauche +// ajout de la phrase en haut à gauche imagestring($im, 5, 0, 0, "Bonjour le monde !", $textcolor); // affichage de l'image -header("Content-type: image/jpeg"); -imagejpeg($im); +header("Content-type: image/png"); +imagepng($im); ?> ]]> </programlisting> @@ -78,4 +79,4 @@ vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> +--> \ No newline at end of file http://cvs.php.net/viewcvs.cgi/phpdoc-fr/reference/image/functions/imagettftext.xml?r1=1.26&r2=1.27&diff_format=u Index: phpdoc-fr/reference/image/functions/imagettftext.xml diff -u phpdoc-fr/reference/image/functions/imagettftext.xml:1.26 phpdoc-fr/reference/image/functions/imagettftext.xml:1.27 --- phpdoc-fr/reference/image/functions/imagettftext.xml:1.26 Tue Aug 30 00:02:42 2005 +++ phpdoc-fr/reference/image/functions/imagettftext.xml Mon Jan 30 21:09:40 2006 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.26 $ --> -<!-- EN-Revision: 1.17 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.27 $ --> +<!-- EN-Revision: 1.18 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <refentry id="function.imagettftext"> <refnamediv> @@ -177,6 +177,7 @@ $white = imagecolorallocate($im, 255, 255, 255); $grey = imagecolorallocate($im, 128, 128, 128); $black = imagecolorallocate($im, 0, 0, 0); +imagefilledrectangle($im, 0, 0, 399, 29, $white); // Le texte à dessiner $text = 'Test...'; http://cvs.php.net/viewcvs.cgi/phpdoc-fr/reference/mysqli/functions/mysqli-stmt-send-long-data.xml?r1=1.10&r2=1.11&diff_format=u Index: phpdoc-fr/reference/mysqli/functions/mysqli-stmt-send-long-data.xml diff -u phpdoc-fr/reference/mysqli/functions/mysqli-stmt-send-long-data.xml:1.10 phpdoc-fr/reference/mysqli/functions/mysqli-stmt-send-long-data.xml:1.11 --- phpdoc-fr/reference/mysqli/functions/mysqli-stmt-send-long-data.xml:1.10 Fri May 27 21:05:08 2005 +++ phpdoc-fr/reference/mysqli/functions/mysqli-stmt-send-long-data.xml Mon Jan 30 21:09:40 2006 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.10 $ --> -<!-- EN-Revision: 1.6 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.11 $ --> +<!-- EN-Revision: 1.7 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <refentry id="function.mysqli-stmt-send-long-data"> <refnamediv> @@ -45,6 +45,26 @@ <para>&return.success;</para> </refsect1> <refsect1> + &reftitle.examples; + <example> + <title>Style orienté objet</title> + <programlisting role="php"> +<![CDATA[ +<?php +$stmt = $mysqli->prepare("INSERT INTO messages (message) VALUES (?)"); +$stmt->bind_param("b", $null); +$fp = fopen("messages.txt", "r"); +while (!feof($fp)) { + $stmt->send_long_data(0, fread($fp, 8192)); +} +fclose($fp); +$stmt->execute(); +?> +]]> + </programlisting> + </example> + </refsect1> + <refsect1> &reftitle.seealso; <para> <function>mysqli_prepare</function> et http://cvs.php.net/viewcvs.cgi/phpdoc-fr/reference/var/functions/unset.xml?r1=1.16&r2=1.17&diff_format=u Index: phpdoc-fr/reference/var/functions/unset.xml diff -u phpdoc-fr/reference/var/functions/unset.xml:1.16 phpdoc-fr/reference/var/functions/unset.xml:1.17 --- phpdoc-fr/reference/var/functions/unset.xml:1.16 Mon Dec 12 17:05:43 2005 +++ phpdoc-fr/reference/var/functions/unset.xml Mon Jan 30 21:09:40 2006 @@ -1,7 +1,8 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.16 $ --> -<!-- EN-Revision: 1.13 Maintainer: didou Status: ready --> +<!-- $Revision: 1.17 $ --> +<!-- EN-Revision: 1.14 Maintainer: didou Status: ready --> <!-- Reviewed: yes --> + <refentry id="function.unset"> <refnamediv> <refname>unset</refname> @@ -41,6 +42,11 @@ </programlisting> </example> </para> + <note> + <para> + Il est possible de détruire n'importe quelle propriété visible dans le contexte courant. + </para> + </note> <para> Le comportement de <function>unset</function> à l'intérieur d'une fonction peut varier suivant le type de variable que vous voulez @@ -193,4 +199,4 @@ vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> +--> \ No newline at end of file
« previous php.doc.fr (#4807) next »