cvs: phpdoc-fr /appendices wrappers.xml /reference/gmp/functions gmp-div-q.xml /reference/pdo constants.xml

From: Date: Sat, 23 Sep 2006 08:21:32 +0000
Subject: cvs: phpdoc-fr /appendices wrappers.xml /reference/gmp/functions gmp-div-q.xml /reference/pdo constants.xml
Groups: php.doc.fr 
Request: Send a blank email to doc-fr+get-5059@lists.php.net to get a copy of this message
yannick Sat Sep 23 08:21:32 2006 UTC Modified files: /phpdoc-fr/appendices wrappers.xml /phpdoc-fr/reference/gmp/functions gmp-div-q.xml /phpdoc-fr/reference/pdo constants.xml Log: sync with EN

http://cvs.php.net/viewvc.cgi/phpdoc-fr/appendices/wrappers.xml?r1=1.36&r2=1.37&diff_format=u Index: phpdoc-fr/appendices/wrappers.xml diff -u phpdoc-fr/appendices/wrappers.xml:1.36 phpdoc-fr/appendices/wrappers.xml:1.37 --- phpdoc-fr/appendices/wrappers.xml:1.36 Sun Aug 27 12:35:58 2006 +++ phpdoc-fr/appendices/wrappers.xml Sat Sep 23 08:21:32 2006 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.36 $ --> -<!-- EN-Revision: 1.62 Maintainer: dams Status: ready --> -<!-- Reviewed: yes --> +<!-- $Revision: 1.37 $ --> +<!-- EN-Revision: 1.65 Maintainer: dams Status: ready --> +<!-- Reviewed: no --> <appendix id="wrappers"> <title>Liste des protocoles supportés</title> @@ -625,17 +625,15 @@ <section id="wrappers.php"> <title>Flux d'entrée/sortie</title> - <simpara> - &php; 3.0.13 et plus récent, <filename>php://output</filename> - et <filename>php://input</filename> depuis &php; 4.3 - </simpara> <itemizedlist> - <listitem><simpara><filename>php://stdin</filename></simpara></listitem> - <listitem><simpara><filename>php://stdout</filename></simpara></listitem> - <listitem><simpara><filename>php://stderr</filename></simpara></listitem> - <listitem><simpara><filename>php://output</filename></simpara></listitem> - <listitem><simpara><filename>php://input</filename></simpara></listitem> + <listitem><simpara><filename>/path/to/file.ext</filename></simpara></listitem> + <listitem><simpara><filename>relative/path/to/file.ext</filename></simpara></listitem> + <listitem><simpara><filename>fileInCwd.ext</filename></simpara></listitem> + <listitem><simpara><filename>C:/path/to/winfile.ext</filename></simpara></listitem> + <listitem><simpara><filename>C:\path\to\winfile.ext</filename></simpara></listitem> + <listitem><simpara><filename>\\smbserver\share\path\to\winfile.ext</filename></simpara></listitem> + <listitem><simpara><filename>file:///path/to/file.ext</filename></simpara></listitem> </itemizedlist> <simpara> @@ -751,6 +749,43 @@ </simpara> </listitem> </itemizedlist> + + <simpara> + Le gestionnaire <filename>php://memory</filename> stocke les données en + mémoire. <filename>php://temp</filename> fonctionne de la même façon, + mais utilise des fichiers temporaires pour stocker les données lorsqu'une certaine + limite mémoire est atteinte (par défaut, 2 Mo). + </simpara> + <simpara> + Le gestionnaire <filename>php://temp</filename> prend les paramètres suivants, + qui sont les parties du chemin : + </simpara> + <itemizedlist> + <listitem> + <para> + <literal>/maxmemory:&lt;nombre d'octets&gt;</literal> + (<emphasis>optionnel</emphasis>). Ce paramètre permet de changer la valeur + de la limite mémoire (lorsque les données sont déplacées vers un fichier temporaire). + <informalexample> + <programlisting role="php"> +<![CDATA[ +<?php +$fiveMBs = 5 * 1024 * 1024; +$fp = fopen("php://temp/maxmemory:$fiveMBs", 'r+'); + +fputs($fp, "Bonjour\n"); + +// lecture de ce que nous avons écrit +rewind($fp); +echo stream_get_contents($fp); +?> +]]> + </programlisting> + </informalexample> + </para> + </listitem> + </itemizedlist> + <para> <table> <title> @@ -772,34 +807,46 @@ <row> <entry>Autorisé en lecture</entry> <entry> - <literal>php://stdin</literal> et - <literal>php://input</literal> uniquement. + <literal>php://stdin</literal>, + <literal>php://input</literal>, + <literal>php://memory</literal> et + <literal>php://temp</literal> uniquement. </entry> </row> <row> <entry>Autorisé en écriture</entry> <entry> <literal>php://stdout</literal>, - <literal>php://stderr</literal> et - <literal>php://output</literal> uniquement. + <literal>php://stderr</literal>, + <literal>php://output</literal>, + <literal>php://memory</literal> et + <literal>php://temp</literal> uniquement. </entry> </row> <row> <entry>Autorisé en ajout</entry> <entry> <literal>php://stdout</literal>, - <literal>php://stderr</literal> et - <literal>php://output</literal> uniquement. + <literal>php://stderr</literal>, + <literal>php://output</literal>, + <literal>php://memory</literal> et + <literal>php://temp</literal> uniquement. (Equivalent à écrire) </entry> </row> <row> <entry>Autorisé en lecture et écriture</entry> - <entry>Non. Ces gestionnaires sont unidirectionnels.</entry> + <entry> + <literal>php://memory</literal> et + <literal>php://temp</literal> uniquement. + </entry> </row> <row> <entry>Supporte <function>stat</function></entry> - <entry>Non</entry> + <entry> + <literal>php://memory</literal> et + <literal>php://temp</literal> uniquement. + </entry> </row> <row> <entry>Supporte <function>unlink</function></entry> @@ -912,7 +959,97 @@ </tgroup> </table> </para> -</section> + </section> + + <section id="wrappers.data"> + <title>Données (RFC 2397)</title> + <simpara> + Le gestionnaire de flux <filename>data:</filename> (<ulink url="&url.rfc;2397">RFC + 2397</ulink>) est disponible depuis &php; 5.2.0. + </simpara> + + <example> + <title>Affichage du contenu de data://</title> + <programlisting role="php"> +<![CDATA[ +<?php +// Affiche "I love PHP" +echo file_get_contents('data://text/plain;base64,SSBsb3ZlIFBIUAo='); +?> +]]> + </programlisting> + </example> + + <example> + <title>Récupération du type de média</title> + <programlisting role="php"> +<![CDATA[ +<?php +$fp = fopen('data://text/plain;base64,', 'r'); +$meta = stream_get_meta_data($fp); + +// Affiche "text/plain" +echo $meta['mediatype']; +?> +]]> + </programlisting> + </example> + <para> + <table> + <title>Résumé du gestionnaire</title> + <tgroup cols="2"> + <thead> + <row> + <entry>Attribut</entry> + <entry>Supporté</entry> + </row> + </thead> + <tbody> + <row> + <entry>Restreint par <link linkend="ini.allow-url-fopen">allow_url_fopen</link></entry> + <entry>Non</entry> + </row> + <row> + <entry>Autorisé en lecture</entry> + <entry>Oui</entry> + </row> + <row> + <entry>Autorisé en écriture</entry> + <entry>Non</entry> + </row> + <row> + <entry>Autorisé en ajout</entry> + <entry>Non</entry> + </row> + <row> + <entry>Autorisé en lecture et en écriture simutané</entry> + <entry>Non</entry> + </row> + <row> + <entry>Supporte <function>stat</function></entry> + <entry>Non</entry> + </row> + <row> + <entry>Supporte <function>unlink</function></entry> + <entry>Non</entry> + </row> + <row> + <entry>Supporte <function>rename</function></entry> + <entry>Non</entry> + </row> + <row> + <entry>Supporte <function>mkdir</function></entry> + <entry>Non</entry> + </row> + <row> + <entry>Supporte <function>rmdir</function></entry> + <entry>Non</entry> + </row> + </tbody> + </tgroup> + </table> + </para> + </section> <section id="wrappers.ssh2"> <title>Shell sécurisé 2</title> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/gmp/functions/gmp-div-q.xml?r1=1.10&r2=1.11&diff_format=u Index: phpdoc-fr/reference/gmp/functions/gmp-div-q.xml diff -u phpdoc-fr/reference/gmp/functions/gmp-div-q.xml:1.10 phpdoc-fr/reference/gmp/functions/gmp-div-q.xml:1.11 --- phpdoc-fr/reference/gmp/functions/gmp-div-q.xml:1.10 Mon Aug 28 12:53:38 2006 +++ phpdoc-fr/reference/gmp/functions/gmp-div-q.xml Sat Sep 23 08:21:32 2006 @@ -1,7 +1,8 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.10 $ --> -<!-- EN-Revision: 1.4 Maintainer: didou Status: ready --> +<!-- $Revision: 1.11 $ --> +<!-- EN-Revision: 1.5 Maintainer: didou Status: ready --> <!-- Reviewed: no --> + <refentry id="function.gmp-div-q"> <refnamediv> <refname>gmp_div_q</refname> @@ -73,7 +74,7 @@ 0 1 0 -1 +-1 ]]> </screen> </example> @@ -104,4 +105,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/viewvc.cgi/phpdoc-fr/reference/pdo/constants.xml?r1=1.13&r2=1.14&diff_format=u Index: phpdoc-fr/reference/pdo/constants.xml diff -u phpdoc-fr/reference/pdo/constants.xml:1.13 phpdoc-fr/reference/pdo/constants.xml:1.14 --- phpdoc-fr/reference/pdo/constants.xml:1.13 Sun May 7 10:58:01 2006 +++ phpdoc-fr/reference/pdo/constants.xml Sat Sep 23 08:21:32 2006 @@ -1,6 +1,6 @@ <?xml version='1.0' encoding='iso-8859-1'?> -<!-- $Revision: 1.13 $ --> -<!-- EN-Revision: 1.15 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.14 $ --> +<!-- EN-Revision: 1.17 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <section id="pdo.constants"> @@ -290,7 +290,7 @@ </term> <listitem> <simpara> - + Disponible depuis &php; 5.2.0 </simpara> </listitem> </varlistentry> @@ -547,7 +547,7 @@ </term> <listitem> <simpara> - + Disponible depuis &php; 5.2.0. </simpara> </listitem> </varlistentry> @@ -637,7 +637,7 @@ </varlistentry> <varlistentry> <term> - <constant>PDO::PDO_NULL_NATURAL</constant> + <constant>PDO::NULL_NATURAL</constant> (&integer;) </term> <listitem> @@ -648,7 +648,7 @@ </varlistentry> <varlistentry> <term> - <constant>PDO::PDO_NULL_EMPTY_STRING</constant> + <constant>PDO::NULL_EMPTY_STRING</constant> (&integer;) </term> <listitem> @@ -659,7 +659,7 @@ </varlistentry> <varlistentry> <term> - <constant>PDO::PDO_NULL_TO_STRING</constant> + <constant>PDO::NULL_TO_STRING</constant> (&integer;) </term> <listitem> @@ -881,4 +881,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 (#5059) next »