cvs: phpdoc-fr / language-snippets.ent /appendices reserved.xml /faq html.xml /language control-structures.xml operators.xml
/language/predefined/exception construct.xml /language/types string.xml /reference/errorfunc/functions debug-backtrace.xml
/reference/mssql/functions mssql-get-last-message.xml mssql-rows-affected.xml mssql-select-db.xml /reference/mysqli/mysqli connect.xml query.xml
/reference/mysqli/mysqli_result fetch-all.xml /reference/pdo_odbc reference.xml /reference/strings/functions parse-str.xml quotemeta.xml
setlocale.xml sha1.xml str-getcsv.xml /reference/var/functions is-unicode.xml
| From: | Damien Seguy | Date: | Thu, 08 Jan 2009 20:42:27 +0000 |
| Subject: | cvs: phpdoc-fr / language-snippets.ent /appendices reserved.xml /faq html.xml /language control-structures.xml operators.xml /language/predefined/exception construct.xml /language/types string.xml /reference/errorfunc/functions debug-backtrace.xml /reference/mssql/functions mssql-get-last-message.xml mssql-rows-affected.xml mssql-select-db.xml /reference/mysqli/mysqli connect.xml query.xml /reference/mysqli/mysqli_result fetch-all.xml /reference/pdo_odbc reference.xml /reference/strings/functions parse-str.xml quotemeta.xml setlocale.xml sha1.xml str-getcsv.xml /reference/var/functions is-unicode.xml |
||
| Groups: | php.doc.fr | ||
| Request: | Send a blank email to doc-fr+get-6307@lists.php.net to get a copy of this message | ||
dams Thu Jan 8 20:42:27 2009 UTC
Modified files:
/phpdoc-fr language-snippets.ent
/phpdoc-fr/appendices reserved.xml
/phpdoc-fr/faq html.xml
/phpdoc-fr/language control-structures.xml operators.xml
/phpdoc-fr/language/predefined/exception construct.xml
/phpdoc-fr/language/types string.xml
/phpdoc-fr/reference/errorfunc/functions debug-backtrace.xml
/phpdoc-fr/reference/mssql/functions mssql-get-last-message.xml
mssql-rows-affected.xml
mssql-select-db.xml
/phpdoc-fr/reference/mysqli/mysqli connect.xml query.xml
/phpdoc-fr/reference/mysqli/mysqli_result fetch-all.xml
/phpdoc-fr/reference/pdo_odbc reference.xml
/phpdoc-fr/reference/strings/functions parse-str.xml quotemeta.xml
setlocale.xml sha1.xml
str-getcsv.xml
/phpdoc-fr/reference/var/functions is-unicode.xml
Log:
sync with en
http://cvs.php.net/viewvc.cgi/phpdoc-fr/language-snippets.ent?r1=1.200&r2=1.201&diff_format=u Index: phpdoc-fr/language-snippets.ent diff -u phpdoc-fr/language-snippets.ent:1.200 phpdoc-fr/language-snippets.ent:1.201 --- phpdoc-fr/language-snippets.ent:1.200 Thu Jan 8 06:30:00 2009 +++ phpdoc-fr/language-snippets.ent Thu Jan 8 20:42:25 2009 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.200 $ --> -<!-- EN-Revision: 1.236 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.201 $ --> +<!-- EN-Revision: 1.238 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <!-- @@ -629,6 +629,9 @@ de requête retourné par la fonction <function>mysqli_stmt_init</function>.</para> </listitem></varlistentry>'> +<!ENTITY mysqli.available.mysqlnd 'Disponible uniquement avec <link +linkend="mysqli.overview.mysqlnd">mysqlnd</link>.'> + <!-- Notes for SAPI/Apache --> <!ENTITY note.apache.nsapi-module '<note><para>Depuis PHP 4.3.3, vous pouvez utiliser cette fonction avec le <link linkend="ref.nsapi">module NSAPI</link> http://cvs.php.net/viewvc.cgi/phpdoc-fr/appendices/reserved.xml?r1=1.67&r2=1.68&diff_format=u Index: phpdoc-fr/appendices/reserved.xml diff -u phpdoc-fr/appendices/reserved.xml:1.67 phpdoc-fr/appendices/reserved.xml:1.68 --- phpdoc-fr/appendices/reserved.xml:1.67 Tue Nov 25 16:31:16 2008 +++ phpdoc-fr/appendices/reserved.xml Thu Jan 8 20:42:25 2009 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.67 $ --> -<!-- EN-Revision: 1.79 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.68 $ --> +<!-- EN-Revision: 1.80 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <appendix xml:id="reserved" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> @@ -128,7 +128,7 @@ <link linkend="language.variables.scope">global</link> </entry> <entry> - goto (depuis PHP 5.3) + <link linkend="control-structures.goto">goto</link> (depuis PHP 5.3) </entry> </row> <row> http://cvs.php.net/viewvc.cgi/phpdoc-fr/faq/html.xml?r1=1.19&r2=1.20&diff_format=u Index: phpdoc-fr/faq/html.xml diff -u phpdoc-fr/faq/html.xml:1.19 phpdoc-fr/faq/html.xml:1.20 --- phpdoc-fr/faq/html.xml:1.19 Sat Aug 23 16:21:03 2008 +++ phpdoc-fr/faq/html.xml Thu Jan 8 20:42:26 2009 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.19 $ --> -<!-- EN-Revision: 1.31 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.20 $ --> +<!-- EN-Revision: 1.32 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <chapter xml:id="faq.html" xmlns="http://docbook.org/ns/docbook"> @@ -305,7 +305,9 @@ possible qu'en technologie coté client. </para> <para> - <programlisting role="php"> + <example> + <title>Génération de Javascript avec PHP</title> + <programlisting role="php"> <![CDATA[ <?php if (isset($_GET['largeur']) AND isset($_GET['hauteur'])) { @@ -325,7 +327,8 @@ } ?> ]]> - </programlisting> + </programlisting> + </example> </para> </answer> </qandaentry> http://cvs.php.net/viewvc.cgi/phpdoc-fr/language/control-structures.xml?r1=1.102&r2=1.103&diff_format=u Index: phpdoc-fr/language/control-structures.xml diff -u phpdoc-fr/language/control-structures.xml:1.102 phpdoc-fr/language/control-structures.xml:1.103 --- phpdoc-fr/language/control-structures.xml:1.102 Sun Dec 28 21:01:42 2008 +++ phpdoc-fr/language/control-structures.xml Thu Jan 8 20:42:26 2009 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.102 $ --> -<!-- EN-Revision: 1.174 Maintainer: yannick Status: ready --> -<!-- Reviewed: no --> +<!-- $Revision: 1.103 $ --> +<!-- EN-Revision: 1.175 Maintainer: yannick Status: ready --> +<!-- Reviewed: yes --> <chapter xml:id="language.control-structures" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>Les structures de contrôle</title> @@ -38,6 +38,7 @@ &language.control-structures.include; &language.control-structures.require-once; &language.control-structures.include-once; + &language.control-structures.goto; </chapter> http://cvs.php.net/viewvc.cgi/phpdoc-fr/language/operators.xml?r1=1.107&r2=1.108&diff_format=u Index: phpdoc-fr/language/operators.xml diff -u phpdoc-fr/language/operators.xml:1.107 phpdoc-fr/language/operators.xml:1.108 --- phpdoc-fr/language/operators.xml:1.107 Tue Dec 23 21:45:16 2008 +++ phpdoc-fr/language/operators.xml Thu Jan 8 20:42:26 2009 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.107 $ --> -<!-- EN-Revision: 1.128 Maintainer: yannick Status: ready --> -<!-- Reviewed: no --> +<!-- $Revision: 1.108 $ --> +<!-- EN-Revision: 1.129 Maintainer: yannick Status: ready --> +<!-- Reviewed: yes --> <chapter xml:id="language.operators" xmlns="http://docbook.org/ns/docbook"> <title>Les opérateurs</title> @@ -736,6 +736,12 @@ <replaceable>expr3</replaceable> si <replaceable>expr1</replaceable> est évaluée à &false;. </para> + <para> + Depuis PHP 5.3, il est possible d'omettre la partie centrale de l'opérateur + ternaire. L'expression <literal>expr1 ?: expr3</literal> retourne + <replaceable>expr1</replaceable> si <replaceable>expr1</replaceable> + vaut &true;, est <replaceable>expr3</replaceable> sinon. + </para> <note> <simpara> Notez que l'opérateur ternaire est une instruction, et il n'est pas http://cvs.php.net/viewvc.cgi/phpdoc-fr/language/predefined/exception/construct.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc-fr/language/predefined/exception/construct.xml diff -u phpdoc-fr/language/predefined/exception/construct.xml:1.4 phpdoc-fr/language/predefined/exception/construct.xml:1.5 --- phpdoc-fr/language/predefined/exception/construct.xml:1.4 Tue Dec 23 21:45:15 2008 +++ phpdoc-fr/language/predefined/exception/construct.xml Thu Jan 8 20:42:26 2009 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> -<!-- Reviewed: no --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> +<!-- Reviewed: yes --> <refentry xml:id="exception.construct" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> @@ -41,9 +41,43 @@ </para> </listitem> </varlistentry> - </variablelist> + <varlistentry> + <term><parameter>previous</parameter></term> + <listitem> + <para> + L'exception précédente, utilisée pour le chaînage d'exception. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + + <refsect1 role="changelog"> + &reftitle.changelog; + <para> + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>5.3.0</entry> + <entry> + Le paramètre <parameter>previous</parameter> a été ajouté. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> </para> </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc-fr/language/types/string.xml?r1=1.7&r2=1.8&diff_format=u Index: phpdoc-fr/language/types/string.xml diff -u phpdoc-fr/language/types/string.xml:1.7 phpdoc-fr/language/types/string.xml:1.8 --- phpdoc-fr/language/types/string.xml:1.7 Thu Jan 1 10:14:41 2009 +++ phpdoc-fr/language/types/string.xml Thu Jan 8 20:42:26 2009 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.7 $ --> -<!-- EN-Revision: 1.16 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.8 $ --> +<!-- EN-Revision: 1.17 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <sect1 xml:id="language.types.string"> @@ -234,7 +234,8 @@ <para> Heredoc ne peut être utilisé pour initialiser les membres d'une classe. - Utilisez la syntaxe + Depuis PHP 5.3, cette limitation ne s'applique qu'aux Heredoc qui contiennent + des variables. Utilisez la syntaxe <link linkend="language.types.string.syntax.nowdoc">Nowdoc</link> à la place. </para> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/errorfunc/functions/debug-backtrace.xml?r1=1.22&r2=1.23&diff_format=u Index: phpdoc-fr/reference/errorfunc/functions/debug-backtrace.xml diff -u phpdoc-fr/reference/errorfunc/functions/debug-backtrace.xml:1.22 phpdoc-fr/reference/errorfunc/functions/debug-backtrace.xml:1.23 --- phpdoc-fr/reference/errorfunc/functions/debug-backtrace.xml:1.22 Mon Dec 1 22:09:21 2008 +++ phpdoc-fr/reference/errorfunc/functions/debug-backtrace.xml Thu Jan 8 20:42:26 2009 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.22 $ --> -<!-- EN-Revision: 1.20 Maintainer: yannick Status: ready --> -<!-- Reviewed: no --> +<!-- $Revision: 1.23 $ --> +<!-- EN-Revision: 1.21 Maintainer: yannick Status: ready --> +<!-- Reviewed: yes --> <refentry xml:id="function.debug-backtrace" xmlns="http://docbook.org/ns/docbook"> <refnamediv> @@ -20,6 +20,22 @@ </para> </refsect1> + <refsect1 role="parameters"><!-- {{{ --> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>provide_object</parameter></term> + <listitem> + <para> + Indique s'il faut remplir l'index "object". Par défaut, &true;. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1><!-- }}} --> + <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/mssql/functions/mssql-get-last-message.xml?r1=1.10&r2=1.11&diff_format=u Index: phpdoc-fr/reference/mssql/functions/mssql-get-last-message.xml diff -u phpdoc-fr/reference/mssql/functions/mssql-get-last-message.xml:1.10 phpdoc-fr/reference/mssql/functions/mssql-get-last-message.xml:1.11 --- phpdoc-fr/reference/mssql/functions/mssql-get-last-message.xml:1.10 Mon Jul 23 19:06:59 2007 +++ phpdoc-fr/reference/mssql/functions/mssql-get-last-message.xml Thu Jan 8 20:42:26 2009 @@ -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.10 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <refentry xml:id="function.mssql-get-last-message" xmlns="http://docbook.org/ns/docbook"> @@ -13,13 +13,70 @@ &reftitle.description; <methodsynopsis> <type>string</type><methodname>mssql_get_last_message</methodname> - <void/> + <void /> </methodsynopsis> + <para> + Lit le dernier message d'erreur du serveur MS-SQL. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + &no.function.parameters; + </refsect1> - &warn.undocumented.func; + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + Retourne le dernier message d'erreur du serveur, ou une chaîne vide, + si aucune message d'erreur n'a été retourné par MSSQL. + </para> + </refsect1> + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title>Exemple avec <function>mssql_get_last_message</function></title> + <programlisting role="php"> +<![CDATA[ +<?php +// Connexion à MSSQL +mssql_connect('KALLESPC\SQLEXPRESS', 'sa', 'phpfi'); +mssql_select_db('php'); + +// Une requête qui échoue +$query = @mssql_query('SELECT * FROM [php].[dbo].[not-found]'); + +if(!$query) +{ + // La requête a échoué, retourné un message d'erreur et nous + // pouvons l'obtenir avec mssql_get_last_message() + die('Erreur MSSQL : ' . mssql_get_last_message()); +} +?> +]]> + </programlisting> + &example.outputs.similar; + <screen> +<![CDATA[ +Erreur MSSQL : Invalid object name 'php.dbo.not-found'. +]]> + </screen> + </example> + </para> </refsect1> + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>mssql_min_error_severity</function></member> + <member><function>mssql_min_message_severity</function></member> + </simplelist> + </para> + </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/mssql/functions/mssql-rows-affected.xml?r1=1.10&r2=1.11&diff_format=u Index: phpdoc-fr/reference/mssql/functions/mssql-rows-affected.xml diff -u phpdoc-fr/reference/mssql/functions/mssql-rows-affected.xml:1.10 phpdoc-fr/reference/mssql/functions/mssql-rows-affected.xml:1.11 --- phpdoc-fr/reference/mssql/functions/mssql-rows-affected.xml:1.10 Mon Jul 23 19:06:59 2007 +++ phpdoc-fr/reference/mssql/functions/mssql-rows-affected.xml Thu Jan 8 20:42:26 2009 @@ -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.8 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <refentry xml:id='function.mssql-rows-affected' xmlns="http://docbook.org/ns/docbook"> @@ -16,8 +16,9 @@ <methodparam><type>resource</type><parameter>link_identifier</parameter></methodparam> </methodsynopsis> - &warn.undocumented.func; - + <para> + Retourne le nombre de lignes affectées par la dernière requête en écriture. + </para> </refsect1> <refsect1 role="parameters"> @@ -38,6 +39,32 @@ </para> </refsect1> + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + Retourne le nombre de lignes affectées par la dernière requête en écriture. + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title>Exemle avec <function>mssql_rows_affected</function></title> + <programlisting role="php"> +<![CDATA[ +<?php +// Efface toutes les lignes de la table +mssql_query('TRUNCATE TABLE [php].[dbo].[persons]'); + +echo 'Effacement de ' . mssql_affected_rows($link) . ' row(s)'; +?> +]]> + </programlisting> + </example> + </para> + </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/mssql/functions/mssql-select-db.xml?r1=1.15&r2=1.16&diff_format=u Index: phpdoc-fr/reference/mssql/functions/mssql-select-db.xml diff -u phpdoc-fr/reference/mssql/functions/mssql-select-db.xml:1.15 phpdoc-fr/reference/mssql/functions/mssql-select-db.xml:1.16 --- phpdoc-fr/reference/mssql/functions/mssql-select-db.xml:1.15 Fri May 23 20:30:03 2008 +++ phpdoc-fr/reference/mssql/functions/mssql-select-db.xml Thu Jan 8 20:42:26 2009 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.15 $ --> -<!-- EN-Revision: 1.10 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.16 $ --> +<!-- EN-Revision: 1.11 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <refentry xml:id="function.mssql-select-db" xmlns="http://docbook.org/ns/docbook"> @@ -36,7 +36,7 @@ Le nom de la base de données. </para> <para> - Pour échapper le nom de la base de données qui contient des espaces, + Pour protéger le nom de la base de données qui contient des espaces, des tirets ("-") ou tous autres caractères spéciaux, le nom de la base de données doit être entouré de crochets ([]), comme montré dans l'exemple ci-dessous. Cette technique peut également être appliquée lors de la sélection @@ -79,8 +79,11 @@ <programlisting role="php"> <![CDATA[ <?php -$conn = mssql_connect('MYSQLSERVER', 'sa', 'password'); -mssql_select_db('[ma base de donnees]', $conn); +// Crée une connexion à MSSQL +$link = mssql_connect('KALLESPC\SQLEXPRESS', 'sa', 'phpfi'); + +// Selectionne la base 'php' +mssql_select_db('php', $link) ?> ]]> </programlisting> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/mysqli/mysqli/connect.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc-fr/reference/mysqli/mysqli/connect.xml diff -u phpdoc-fr/reference/mysqli/mysqli/connect.xml:1.5 phpdoc-fr/reference/mysqli/mysqli/connect.xml:1.6 --- phpdoc-fr/reference/mysqli/mysqli/connect.xml:1.5 Sat Dec 27 14:00:19 2008 +++ phpdoc-fr/reference/mysqli/mysqli/connect.xml Thu Jan 8 20:42:26 2009 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <refentry xml:id="mysqli.connect" xmlns="http://docbook.org/ns/docbook"> @@ -52,6 +52,11 @@ local est sous-entendu. Lorsque c'est possible, les sockets seront utilisées au lieu du protocole TCP/IP. </para> + <para> + Préfixer l'hôte par <literal>p:</literal> ouvre une connexion persistante + <function>mysqli_change_user</function> est automatiquement appelé + sur les connexions qui sont utilisées dans le pool de connexions. + </para> </listitem> </varlistentry> <varlistentry> @@ -118,6 +123,31 @@ </para> </refsect1> + <refsect1 role="changelog"> + &reftitle.changelog; + <para> + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>5.3.0</entry> + <entry> + Ajout des connexions persistantes. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </para> + </refsect1> + + <refsect1 role="examples"> &reftitle.examples; <example> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/mysqli/mysqli/query.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc-fr/reference/mysqli/mysqli/query.xml diff -u phpdoc-fr/reference/mysqli/mysqli/query.xml:1.2 phpdoc-fr/reference/mysqli/mysqli/query.xml:1.3 --- phpdoc-fr/reference/mysqli/mysqli/query.xml:1.2 Sat Apr 12 17:11:33 2008 +++ phpdoc-fr/reference/mysqli/mysqli/query.xml Thu Jan 8 20:42:26 2009 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <refentry xml:id="mysqli.query" xmlns="http://docbook.org/ns/docbook"> @@ -62,6 +62,12 @@ tous les appels suivants retourneront une erreur <literal>Commands out of sync</literal> tant que vous n'aurez pas appelé la fonction <function>mysqli_free_result</function>. </para> + <para> + Avec la constante <constant>MYSQLI_ASYNC</constant> (disponible avec mysqlnd), + il est possible de faire des requêtes asynchrone. + <function>mysqli_poll</function> est alors utilisé pour lire les résultats + de ce type de requêtes. + </para> </listitem> </varlistentry> </variablelist> @@ -78,6 +84,30 @@ </para> </refsect1> + <refsect1 role="changelog"> + &reftitle.changelog; + <para> + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>5.3.0</entry> + <entry> + Ajout des requêtes asynchrones. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </para> + </refsect1> + <refsect1 role="examples"> &reftitle.examples; <example> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/mysqli/mysqli_result/fetch-all.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc-fr/reference/mysqli/mysqli_result/fetch-all.xml diff -u phpdoc-fr/reference/mysqli/mysqli_result/fetch-all.xml:1.2 phpdoc-fr/reference/mysqli/mysqli_result/fetch-all.xml:1.3 --- phpdoc-fr/reference/mysqli/mysqli_result/fetch-all.xml:1.2 Sat Jan 3 20:29:06 2009 +++ phpdoc-fr/reference/mysqli/mysqli_result/fetch-all.xml Thu Jan 8 20:42:26 2009 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.2 Maintainer: dams Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.3 Maintainer: dams Status: ready --> <!-- Reviewed: yes --> <refentry xml:id="mysqli-result.fetch-all" xmlns="http://docbook.org/ns/docbook"> <refnamediv> @@ -23,7 +23,7 @@ <methodparam choice='opt'><type>int</type><parameter>resulttype</parameter></methodparam> </methodsynopsis> <para> - Disponible uniquement avec <literal>mysqlnd</literal>. + &mysqli.available.mysqlnd; </para> </refsect1> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/pdo_odbc/reference.xml?r1=1.12&r2=1.13&diff_format=u Index: phpdoc-fr/reference/pdo_odbc/reference.xml diff -u phpdoc-fr/reference/pdo_odbc/reference.xml:1.12 phpdoc-fr/reference/pdo_odbc/reference.xml:1.13 --- phpdoc-fr/reference/pdo_odbc/reference.xml:1.12 Sat Jun 21 20:51:41 2008 +++ phpdoc-fr/reference/pdo_odbc/reference.xml Thu Jan 8 20:42:26 2009 @@ -1,9 +1,9 @@ <?xml version='1.0' encoding='iso-8859-1'?> -<!-- $Revision: 1.12 $ --> -<!-- EN-Revision: 1.13 Maintainer: jsgoupil Status: ready --> +<!-- $Revision: 1.13 $ --> +<!-- EN-Revision: 1.14 Maintainer: jsgoupil Status: ready --> <!-- Purpose: database.vendors --> <!-- Membership: bundled, external, pecl --> -<!-- Reviewed: no --> +<!-- Reviewed: yes --> <reference xml:id="ref.pdo-odbc" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>Fonctions ODBC et DB2 (PDO_ODBC)</title> @@ -131,11 +131,11 @@ L'exemple suivant montre PDO_ODBC DSN pour se connecter à une base de données ODBC catalogué comme étant testdb dans le pilote ODBC Manager : - <programlisting><![CDATA[ + </para> + <programlisting><![CDATA[ odbc:testdb ]]> </programlisting> - </para> </example> <example> <title>Exemple avec PDO_ODBC DSN (connexion non cataloguée IBM DB2)</title> @@ -143,11 +143,11 @@ L'exemple suivant montre PDO_ODBC DSN pour se connecter à une base de données IBM DB2 nommé <userinput>SAMPLE</userinput> en utilisant la syntaxe complète de ODBC DSN : - <programlisting><![CDATA[ + </para> + <programlisting><![CDATA[ odbc:DRIVER={IBM DB2 ODBC DRIVER};HOSTNAME=localhost;PORT=50000;DATABASE=SAMPLE;PROTOCOL=TCPIP;UID=db2inst1;PWD=ibmdb2; ]]> - </programlisting> - </para> + </programlisting> </example> <example> <title>Exemple avec PDO_ODBC DSN (connexion non cataloguée Microsoft Access)</title> @@ -156,11 +156,11 @@ de données Microsoft Access enregistré à <userinput>C:\db.mdb</userinput> en utilisant la syntaxe complète de ODBC DSN : - <programlisting><![CDATA[ + </para> + <programlisting><![CDATA[ odbc:Driver={Microsoft Access Driver (*.mdb)};Dbq=C:\\db.mdb;Uid=Admin ]]> - </programlisting> - </para> + </programlisting> </example> </para> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/strings/functions/parse-str.xml?r1=1.21&r2=1.22&diff_format=u Index: phpdoc-fr/reference/strings/functions/parse-str.xml diff -u phpdoc-fr/reference/strings/functions/parse-str.xml:1.21 phpdoc-fr/reference/strings/functions/parse-str.xml:1.22 --- phpdoc-fr/reference/strings/functions/parse-str.xml:1.21 Fri May 23 13:46:24 2008 +++ phpdoc-fr/reference/strings/functions/parse-str.xml Thu Jan 8 20:42:26 2009 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.21 $ --> -<!-- EN-Revision: 1.14 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.22 $ --> +<!-- EN-Revision: 1.16 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.parse-str"> @@ -25,17 +25,17 @@ <para> Pour accéder à l'URL appelante <literal>QUERY_STRING</literal>, vous devez utiliser la variable - <link linkend="reserved.variables.server"><varname>$_SERVER['QUERY_STRING']</varname></link>. + <varname>$_SERVER['QUERY_STRING']</varname>. Il est aussi intéressant de lire la section sur les - <link linkend="language.variables.external">variables externes à PHP</link>. + <link linkend="language.variables.external">variables de sources externes</link>. </para> </note> <note> <para> La configuration de <link linkend="ini.magic-quotes-gpc">magic_quotes_gpc</link> affecte l'affichage de cette fonction car <function>parse_str</function> utilise - le même mécanisme que PHP utilise pour propager les variables <literal>$_GET</literal>, - <literal>$_POST</literal>, etc. + le même mécanisme que PHP utilise pour propager les variables <varname>$_GET</varname>, + <varname>$_POST</varname>, etc. </para> </note> </refsect1> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/strings/functions/quotemeta.xml?r1=1.16&r2=1.17&diff_format=u Index: phpdoc-fr/reference/strings/functions/quotemeta.xml diff -u phpdoc-fr/reference/strings/functions/quotemeta.xml:1.16 phpdoc-fr/reference/strings/functions/quotemeta.xml:1.17 --- phpdoc-fr/reference/strings/functions/quotemeta.xml:1.16 Tue Jun 3 05:32:47 2008 +++ phpdoc-fr/reference/strings/functions/quotemeta.xml Thu Jan 8 20:42:26 2009 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.16 $ --> -<!-- EN-Revision: 1.9 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.17 $ --> +<!-- EN-Revision: 1.10 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.quotemeta"> @@ -62,7 +62,7 @@ <member><function>nl2br</function></member> <member><function>stripslashes</function></member> <member><function>stripcslashes</function></member> - <member><function>ereg</function></member> + <member><function>preg_match</function></member> </simplelist> </para> </refsect1> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/strings/functions/setlocale.xml?r1=1.27&r2=1.28&diff_format=u Index: phpdoc-fr/reference/strings/functions/setlocale.xml diff -u phpdoc-fr/reference/strings/functions/setlocale.xml:1.27 phpdoc-fr/reference/strings/functions/setlocale.xml:1.28 --- phpdoc-fr/reference/strings/functions/setlocale.xml:1.27 Sat Jun 21 20:51:45 2008 +++ phpdoc-fr/reference/strings/functions/setlocale.xml Thu Jan 8 20:42:26 2009 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.27 $ --> -<!-- EN-Revision: 1.30 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.28 $ --> +<!-- EN-Revision: 1.32 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <refentry xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://docbook.org/ns/docbook" xml:id="function.setlocale"> @@ -155,6 +155,14 @@ </thead> <tbody> <row> + <entry>5.3.0</entry> + <entry> + Cette fonction émet désormais une alerte E_DEPRECATED si une chaîne + est passée comme paramètre <parameter>category</parameter> au lieu + d'une des constantes <literal>LC_*</literal>. + </entry> + </row> + <row> <entry>4.3.0</entry> <entry> Passer plusieurs locales devient possible. http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/strings/functions/sha1.xml?r1=1.13&r2=1.14&diff_format=u Index: phpdoc-fr/reference/strings/functions/sha1.xml diff -u phpdoc-fr/reference/strings/functions/sha1.xml:1.13 phpdoc-fr/reference/strings/functions/sha1.xml:1.14 --- phpdoc-fr/reference/strings/functions/sha1.xml:1.13 Thu Jun 5 10:48:49 2008 +++ phpdoc-fr/reference/strings/functions/sha1.xml Thu Jan 8 20:42:26 2009 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.13 $ --> -<!-- EN-Revision: 1.11 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.14 $ --> +<!-- EN-Revision: 1.12 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <refentry xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://docbook.org/ns/docbook" xml:id="function.sha1"> @@ -108,6 +108,7 @@ <member><function>sha1_file</function></member> <member><function>crc32</function></member> <member><function>md5</function></member> + <member><function>hash</function></member> </simplelist> </para> </refsect1> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/strings/functions/str-getcsv.xml?r1=1.3&r2=1.4&diff_format=u Index: phpdoc-fr/reference/strings/functions/str-getcsv.xml diff -u phpdoc-fr/reference/strings/functions/str-getcsv.xml:1.3 phpdoc-fr/reference/strings/functions/str-getcsv.xml:1.4 --- phpdoc-fr/reference/strings/functions/str-getcsv.xml:1.3 Sun May 25 07:25:00 2008 +++ phpdoc-fr/reference/strings/functions/str-getcsv.xml Thu Jan 8 20:42:26 2009 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> -<!-- Reviewed: no --> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> +<!-- Reviewed: yes --> <refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.str-getcsv"> <refnamediv> @@ -19,7 +19,58 @@ <methodparam choice="opt"><type>string</type><parameter>escape</parameter></methodparam> </methodsynopsis> <para> - &warn.undocumented.func; + Similaire à la fonction <function>fgetcsv</function>, cette fonction + analyse une chaîne de caractères comme argument, contrairement à + <function>fgetcsv</function> qui prend un fichier. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>input</parameter></term> + <listitem> + <para> + La chaîne à analyser. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>delimiter</parameter></term> + <listitem> + <para> + Le délimiteur de champ (un seul caractère). Par défaut, la virgule (<literal>,</literal>). + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>enclosure</parameter></term> + <listitem> + <para> + Le caractère d'encadrement (un seul caractère). Par défaut, + c'est le guillemet double (<literal>"</literal>). + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>escape</parameter></term> + <listitem> + <para> + Le caractère de protection (un seul caractère). Par défaut, c'est + l'antislash. (<literal>\</literal>) + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + Returns an indexed array containing the fields read. </para> </refsect1> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/var/functions/is-unicode.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc-fr/reference/var/functions/is-unicode.xml diff -u phpdoc-fr/reference/var/functions/is-unicode.xml:1.5 phpdoc-fr/reference/var/functions/is-unicode.xml:1.6 --- phpdoc-fr/reference/var/functions/is-unicode.xml:1.5 Wed Jan 7 21:04:20 2009 +++ phpdoc-fr/reference/var/functions/is-unicode.xml Thu Jan 8 20:42:26 2009 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <refentry xml:id="function.is-unicode" xmlns="http://docbook.org/ns/docbook"> @@ -58,7 +58,7 @@ // Declare a binary string $binary = b'Ceci est une chaîne binaire'; -var_dump(is_unicode($unicode), is_bunicode($binary)); +var_dump(is_unicode($unicode), is_unicode($binary)); ?> ]]> </programlisting>
http://cvs.php.net/viewvc.cgi/phpdoc-fr/language-snippets.ent?r1=1.200&r2=1.201&diff_format=u Index: phpdoc-fr/language-snippets.ent diff -u phpdoc-fr/language-snippets.ent:1.200 phpdoc-fr/language-snippets.ent:1.201 --- phpdoc-fr/language-snippets.ent:1.200 Thu Jan 8 06:30:00 2009 +++ phpdoc-fr/language-snippets.ent Thu Jan 8 20:42:25 2009 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.200 $ --> -<!-- EN-Revision: 1.236 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.201 $ --> +<!-- EN-Revision: 1.238 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <!-- @@ -629,6 +629,9 @@ de requête retourné par la fonction <function>mysqli_stmt_init</function>.</para> </listitem></varlistentry>'> +<!ENTITY mysqli.available.mysqlnd 'Disponible uniquement avec <link +linkend="mysqli.overview.mysqlnd">mysqlnd</link>.'> + <!-- Notes for SAPI/Apache --> <!ENTITY note.apache.nsapi-module '<note><para>Depuis PHP 4.3.3, vous pouvez utiliser cette fonction avec le <link linkend="ref.nsapi">module NSAPI</link> http://cvs.php.net/viewvc.cgi/phpdoc-fr/appendices/reserved.xml?r1=1.67&r2=1.68&diff_format=u Index: phpdoc-fr/appendices/reserved.xml diff -u phpdoc-fr/appendices/reserved.xml:1.67 phpdoc-fr/appendices/reserved.xml:1.68 --- phpdoc-fr/appendices/reserved.xml:1.67 Tue Nov 25 16:31:16 2008 +++ phpdoc-fr/appendices/reserved.xml Thu Jan 8 20:42:25 2009 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.67 $ --> -<!-- EN-Revision: 1.79 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.68 $ --> +<!-- EN-Revision: 1.80 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <appendix xml:id="reserved" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> @@ -128,7 +128,7 @@ <link linkend="language.variables.scope">global</link> </entry> <entry> - goto (depuis PHP 5.3) + <link linkend="control-structures.goto">goto</link> (depuis PHP 5.3) </entry> </row> <row> http://cvs.php.net/viewvc.cgi/phpdoc-fr/faq/html.xml?r1=1.19&r2=1.20&diff_format=u Index: phpdoc-fr/faq/html.xml diff -u phpdoc-fr/faq/html.xml:1.19 phpdoc-fr/faq/html.xml:1.20 --- phpdoc-fr/faq/html.xml:1.19 Sat Aug 23 16:21:03 2008 +++ phpdoc-fr/faq/html.xml Thu Jan 8 20:42:26 2009 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.19 $ --> -<!-- EN-Revision: 1.31 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.20 $ --> +<!-- EN-Revision: 1.32 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <chapter xml:id="faq.html" xmlns="http://docbook.org/ns/docbook"> @@ -305,7 +305,9 @@ possible qu'en technologie coté client. </para> <para> - <programlisting role="php"> + <example> + <title>Génération de Javascript avec PHP</title> + <programlisting role="php"> <![CDATA[ <?php if (isset($_GET['largeur']) AND isset($_GET['hauteur'])) { @@ -325,7 +327,8 @@ } ?> ]]> - </programlisting> + </programlisting> + </example> </para> </answer> </qandaentry> http://cvs.php.net/viewvc.cgi/phpdoc-fr/language/control-structures.xml?r1=1.102&r2=1.103&diff_format=u Index: phpdoc-fr/language/control-structures.xml diff -u phpdoc-fr/language/control-structures.xml:1.102 phpdoc-fr/language/control-structures.xml:1.103 --- phpdoc-fr/language/control-structures.xml:1.102 Sun Dec 28 21:01:42 2008 +++ phpdoc-fr/language/control-structures.xml Thu Jan 8 20:42:26 2009 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.102 $ --> -<!-- EN-Revision: 1.174 Maintainer: yannick Status: ready --> -<!-- Reviewed: no --> +<!-- $Revision: 1.103 $ --> +<!-- EN-Revision: 1.175 Maintainer: yannick Status: ready --> +<!-- Reviewed: yes --> <chapter xml:id="language.control-structures" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>Les structures de contrôle</title> @@ -38,6 +38,7 @@ &language.control-structures.include; &language.control-structures.require-once; &language.control-structures.include-once; + &language.control-structures.goto; </chapter> http://cvs.php.net/viewvc.cgi/phpdoc-fr/language/operators.xml?r1=1.107&r2=1.108&diff_format=u Index: phpdoc-fr/language/operators.xml diff -u phpdoc-fr/language/operators.xml:1.107 phpdoc-fr/language/operators.xml:1.108 --- phpdoc-fr/language/operators.xml:1.107 Tue Dec 23 21:45:16 2008 +++ phpdoc-fr/language/operators.xml Thu Jan 8 20:42:26 2009 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.107 $ --> -<!-- EN-Revision: 1.128 Maintainer: yannick Status: ready --> -<!-- Reviewed: no --> +<!-- $Revision: 1.108 $ --> +<!-- EN-Revision: 1.129 Maintainer: yannick Status: ready --> +<!-- Reviewed: yes --> <chapter xml:id="language.operators" xmlns="http://docbook.org/ns/docbook"> <title>Les opérateurs</title> @@ -736,6 +736,12 @@ <replaceable>expr3</replaceable> si <replaceable>expr1</replaceable> est évaluée à &false;. </para> + <para> + Depuis PHP 5.3, il est possible d'omettre la partie centrale de l'opérateur + ternaire. L'expression <literal>expr1 ?: expr3</literal> retourne + <replaceable>expr1</replaceable> si <replaceable>expr1</replaceable> + vaut &true;, est <replaceable>expr3</replaceable> sinon. + </para> <note> <simpara> Notez que l'opérateur ternaire est une instruction, et il n'est pas http://cvs.php.net/viewvc.cgi/phpdoc-fr/language/predefined/exception/construct.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc-fr/language/predefined/exception/construct.xml diff -u phpdoc-fr/language/predefined/exception/construct.xml:1.4 phpdoc-fr/language/predefined/exception/construct.xml:1.5 --- phpdoc-fr/language/predefined/exception/construct.xml:1.4 Tue Dec 23 21:45:15 2008 +++ phpdoc-fr/language/predefined/exception/construct.xml Thu Jan 8 20:42:26 2009 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> -<!-- Reviewed: no --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> +<!-- Reviewed: yes --> <refentry xml:id="exception.construct" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> @@ -41,9 +41,43 @@ </para> </listitem> </varlistentry> - </variablelist> + <varlistentry> + <term><parameter>previous</parameter></term> + <listitem> + <para> + L'exception précédente, utilisée pour le chaînage d'exception. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + + <refsect1 role="changelog"> + &reftitle.changelog; + <para> + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>5.3.0</entry> + <entry> + Le paramètre <parameter>previous</parameter> a été ajouté. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> </para> </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc-fr/language/types/string.xml?r1=1.7&r2=1.8&diff_format=u Index: phpdoc-fr/language/types/string.xml diff -u phpdoc-fr/language/types/string.xml:1.7 phpdoc-fr/language/types/string.xml:1.8 --- phpdoc-fr/language/types/string.xml:1.7 Thu Jan 1 10:14:41 2009 +++ phpdoc-fr/language/types/string.xml Thu Jan 8 20:42:26 2009 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.7 $ --> -<!-- EN-Revision: 1.16 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.8 $ --> +<!-- EN-Revision: 1.17 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <sect1 xml:id="language.types.string"> @@ -234,7 +234,8 @@ <para> Heredoc ne peut être utilisé pour initialiser les membres d'une classe. - Utilisez la syntaxe + Depuis PHP 5.3, cette limitation ne s'applique qu'aux Heredoc qui contiennent + des variables. Utilisez la syntaxe <link linkend="language.types.string.syntax.nowdoc">Nowdoc</link> à la place. </para> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/errorfunc/functions/debug-backtrace.xml?r1=1.22&r2=1.23&diff_format=u Index: phpdoc-fr/reference/errorfunc/functions/debug-backtrace.xml diff -u phpdoc-fr/reference/errorfunc/functions/debug-backtrace.xml:1.22 phpdoc-fr/reference/errorfunc/functions/debug-backtrace.xml:1.23 --- phpdoc-fr/reference/errorfunc/functions/debug-backtrace.xml:1.22 Mon Dec 1 22:09:21 2008 +++ phpdoc-fr/reference/errorfunc/functions/debug-backtrace.xml Thu Jan 8 20:42:26 2009 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.22 $ --> -<!-- EN-Revision: 1.20 Maintainer: yannick Status: ready --> -<!-- Reviewed: no --> +<!-- $Revision: 1.23 $ --> +<!-- EN-Revision: 1.21 Maintainer: yannick Status: ready --> +<!-- Reviewed: yes --> <refentry xml:id="function.debug-backtrace" xmlns="http://docbook.org/ns/docbook"> <refnamediv> @@ -20,6 +20,22 @@ </para> </refsect1> + <refsect1 role="parameters"><!-- {{{ --> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>provide_object</parameter></term> + <listitem> + <para> + Indique s'il faut remplir l'index "object". Par défaut, &true;. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1><!-- }}} --> + <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/mssql/functions/mssql-get-last-message.xml?r1=1.10&r2=1.11&diff_format=u Index: phpdoc-fr/reference/mssql/functions/mssql-get-last-message.xml diff -u phpdoc-fr/reference/mssql/functions/mssql-get-last-message.xml:1.10 phpdoc-fr/reference/mssql/functions/mssql-get-last-message.xml:1.11 --- phpdoc-fr/reference/mssql/functions/mssql-get-last-message.xml:1.10 Mon Jul 23 19:06:59 2007 +++ phpdoc-fr/reference/mssql/functions/mssql-get-last-message.xml Thu Jan 8 20:42:26 2009 @@ -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.10 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <refentry xml:id="function.mssql-get-last-message" xmlns="http://docbook.org/ns/docbook"> @@ -13,13 +13,70 @@ &reftitle.description; <methodsynopsis> <type>string</type><methodname>mssql_get_last_message</methodname> - <void/> + <void /> </methodsynopsis> + <para> + Lit le dernier message d'erreur du serveur MS-SQL. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + &no.function.parameters; + </refsect1> - &warn.undocumented.func; + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + Retourne le dernier message d'erreur du serveur, ou une chaîne vide, + si aucune message d'erreur n'a été retourné par MSSQL. + </para> + </refsect1> + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title>Exemple avec <function>mssql_get_last_message</function></title> + <programlisting role="php"> +<![CDATA[ +<?php +// Connexion à MSSQL +mssql_connect('KALLESPC\SQLEXPRESS', 'sa', 'phpfi'); +mssql_select_db('php'); + +// Une requête qui échoue +$query = @mssql_query('SELECT * FROM [php].[dbo].[not-found]'); + +if(!$query) +{ + // La requête a échoué, retourné un message d'erreur et nous + // pouvons l'obtenir avec mssql_get_last_message() + die('Erreur MSSQL : ' . mssql_get_last_message()); +} +?> +]]> + </programlisting> + &example.outputs.similar; + <screen> +<![CDATA[ +Erreur MSSQL : Invalid object name 'php.dbo.not-found'. +]]> + </screen> + </example> + </para> </refsect1> + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>mssql_min_error_severity</function></member> + <member><function>mssql_min_message_severity</function></member> + </simplelist> + </para> + </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/mssql/functions/mssql-rows-affected.xml?r1=1.10&r2=1.11&diff_format=u Index: phpdoc-fr/reference/mssql/functions/mssql-rows-affected.xml diff -u phpdoc-fr/reference/mssql/functions/mssql-rows-affected.xml:1.10 phpdoc-fr/reference/mssql/functions/mssql-rows-affected.xml:1.11 --- phpdoc-fr/reference/mssql/functions/mssql-rows-affected.xml:1.10 Mon Jul 23 19:06:59 2007 +++ phpdoc-fr/reference/mssql/functions/mssql-rows-affected.xml Thu Jan 8 20:42:26 2009 @@ -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.8 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <refentry xml:id='function.mssql-rows-affected' xmlns="http://docbook.org/ns/docbook"> @@ -16,8 +16,9 @@ <methodparam><type>resource</type><parameter>link_identifier</parameter></methodparam> </methodsynopsis> - &warn.undocumented.func; - + <para> + Retourne le nombre de lignes affectées par la dernière requête en écriture. + </para> </refsect1> <refsect1 role="parameters"> @@ -38,6 +39,32 @@ </para> </refsect1> + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + Retourne le nombre de lignes affectées par la dernière requête en écriture. + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title>Exemle avec <function>mssql_rows_affected</function></title> + <programlisting role="php"> +<![CDATA[ +<?php +// Efface toutes les lignes de la table +mssql_query('TRUNCATE TABLE [php].[dbo].[persons]'); + +echo 'Effacement de ' . mssql_affected_rows($link) . ' row(s)'; +?> +]]> + </programlisting> + </example> + </para> + </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/mssql/functions/mssql-select-db.xml?r1=1.15&r2=1.16&diff_format=u Index: phpdoc-fr/reference/mssql/functions/mssql-select-db.xml diff -u phpdoc-fr/reference/mssql/functions/mssql-select-db.xml:1.15 phpdoc-fr/reference/mssql/functions/mssql-select-db.xml:1.16 --- phpdoc-fr/reference/mssql/functions/mssql-select-db.xml:1.15 Fri May 23 20:30:03 2008 +++ phpdoc-fr/reference/mssql/functions/mssql-select-db.xml Thu Jan 8 20:42:26 2009 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.15 $ --> -<!-- EN-Revision: 1.10 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.16 $ --> +<!-- EN-Revision: 1.11 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <refentry xml:id="function.mssql-select-db" xmlns="http://docbook.org/ns/docbook"> @@ -36,7 +36,7 @@ Le nom de la base de données. </para> <para> - Pour échapper le nom de la base de données qui contient des espaces, + Pour protéger le nom de la base de données qui contient des espaces, des tirets ("-") ou tous autres caractères spéciaux, le nom de la base de données doit être entouré de crochets ([]), comme montré dans l'exemple ci-dessous. Cette technique peut également être appliquée lors de la sélection @@ -79,8 +79,11 @@ <programlisting role="php"> <![CDATA[ <?php -$conn = mssql_connect('MYSQLSERVER', 'sa', 'password'); -mssql_select_db('[ma base de donnees]', $conn); +// Crée une connexion à MSSQL +$link = mssql_connect('KALLESPC\SQLEXPRESS', 'sa', 'phpfi'); + +// Selectionne la base 'php' +mssql_select_db('php', $link) ?> ]]> </programlisting> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/mysqli/mysqli/connect.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc-fr/reference/mysqli/mysqli/connect.xml diff -u phpdoc-fr/reference/mysqli/mysqli/connect.xml:1.5 phpdoc-fr/reference/mysqli/mysqli/connect.xml:1.6 --- phpdoc-fr/reference/mysqli/mysqli/connect.xml:1.5 Sat Dec 27 14:00:19 2008 +++ phpdoc-fr/reference/mysqli/mysqli/connect.xml Thu Jan 8 20:42:26 2009 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <refentry xml:id="mysqli.connect" xmlns="http://docbook.org/ns/docbook"> @@ -52,6 +52,11 @@ local est sous-entendu. Lorsque c'est possible, les sockets seront utilisées au lieu du protocole TCP/IP. </para> + <para> + Préfixer l'hôte par <literal>p:</literal> ouvre une connexion persistante + <function>mysqli_change_user</function> est automatiquement appelé + sur les connexions qui sont utilisées dans le pool de connexions. + </para> </listitem> </varlistentry> <varlistentry> @@ -118,6 +123,31 @@ </para> </refsect1> + <refsect1 role="changelog"> + &reftitle.changelog; + <para> + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>5.3.0</entry> + <entry> + Ajout des connexions persistantes. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </para> + </refsect1> + + <refsect1 role="examples"> &reftitle.examples; <example> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/mysqli/mysqli/query.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc-fr/reference/mysqli/mysqli/query.xml diff -u phpdoc-fr/reference/mysqli/mysqli/query.xml:1.2 phpdoc-fr/reference/mysqli/mysqli/query.xml:1.3 --- phpdoc-fr/reference/mysqli/mysqli/query.xml:1.2 Sat Apr 12 17:11:33 2008 +++ phpdoc-fr/reference/mysqli/mysqli/query.xml Thu Jan 8 20:42:26 2009 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <refentry xml:id="mysqli.query" xmlns="http://docbook.org/ns/docbook"> @@ -62,6 +62,12 @@ tous les appels suivants retourneront une erreur <literal>Commands out of sync</literal> tant que vous n'aurez pas appelé la fonction <function>mysqli_free_result</function>. </para> + <para> + Avec la constante <constant>MYSQLI_ASYNC</constant> (disponible avec mysqlnd), + il est possible de faire des requêtes asynchrone. + <function>mysqli_poll</function> est alors utilisé pour lire les résultats + de ce type de requêtes. + </para> </listitem> </varlistentry> </variablelist> @@ -78,6 +84,30 @@ </para> </refsect1> + <refsect1 role="changelog"> + &reftitle.changelog; + <para> + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>5.3.0</entry> + <entry> + Ajout des requêtes asynchrones. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </para> + </refsect1> + <refsect1 role="examples"> &reftitle.examples; <example> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/mysqli/mysqli_result/fetch-all.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc-fr/reference/mysqli/mysqli_result/fetch-all.xml diff -u phpdoc-fr/reference/mysqli/mysqli_result/fetch-all.xml:1.2 phpdoc-fr/reference/mysqli/mysqli_result/fetch-all.xml:1.3 --- phpdoc-fr/reference/mysqli/mysqli_result/fetch-all.xml:1.2 Sat Jan 3 20:29:06 2009 +++ phpdoc-fr/reference/mysqli/mysqli_result/fetch-all.xml Thu Jan 8 20:42:26 2009 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.2 Maintainer: dams Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.3 Maintainer: dams Status: ready --> <!-- Reviewed: yes --> <refentry xml:id="mysqli-result.fetch-all" xmlns="http://docbook.org/ns/docbook"> <refnamediv> @@ -23,7 +23,7 @@ <methodparam choice='opt'><type>int</type><parameter>resulttype</parameter></methodparam> </methodsynopsis> <para> - Disponible uniquement avec <literal>mysqlnd</literal>. + &mysqli.available.mysqlnd; </para> </refsect1> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/pdo_odbc/reference.xml?r1=1.12&r2=1.13&diff_format=u Index: phpdoc-fr/reference/pdo_odbc/reference.xml diff -u phpdoc-fr/reference/pdo_odbc/reference.xml:1.12 phpdoc-fr/reference/pdo_odbc/reference.xml:1.13 --- phpdoc-fr/reference/pdo_odbc/reference.xml:1.12 Sat Jun 21 20:51:41 2008 +++ phpdoc-fr/reference/pdo_odbc/reference.xml Thu Jan 8 20:42:26 2009 @@ -1,9 +1,9 @@ <?xml version='1.0' encoding='iso-8859-1'?> -<!-- $Revision: 1.12 $ --> -<!-- EN-Revision: 1.13 Maintainer: jsgoupil Status: ready --> +<!-- $Revision: 1.13 $ --> +<!-- EN-Revision: 1.14 Maintainer: jsgoupil Status: ready --> <!-- Purpose: database.vendors --> <!-- Membership: bundled, external, pecl --> -<!-- Reviewed: no --> +<!-- Reviewed: yes --> <reference xml:id="ref.pdo-odbc" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>Fonctions ODBC et DB2 (PDO_ODBC)</title> @@ -131,11 +131,11 @@ L'exemple suivant montre PDO_ODBC DSN pour se connecter à une base de données ODBC catalogué comme étant testdb dans le pilote ODBC Manager : - <programlisting><![CDATA[ + </para> + <programlisting><![CDATA[ odbc:testdb ]]> </programlisting> - </para> </example> <example> <title>Exemple avec PDO_ODBC DSN (connexion non cataloguée IBM DB2)</title> @@ -143,11 +143,11 @@ L'exemple suivant montre PDO_ODBC DSN pour se connecter à une base de données IBM DB2 nommé <userinput>SAMPLE</userinput> en utilisant la syntaxe complète de ODBC DSN : - <programlisting><![CDATA[ + </para> + <programlisting><![CDATA[ odbc:DRIVER={IBM DB2 ODBC DRIVER};HOSTNAME=localhost;PORT=50000;DATABASE=SAMPLE;PROTOCOL=TCPIP;UID=db2inst1;PWD=ibmdb2; ]]> - </programlisting> - </para> + </programlisting> </example> <example> <title>Exemple avec PDO_ODBC DSN (connexion non cataloguée Microsoft Access)</title> @@ -156,11 +156,11 @@ de données Microsoft Access enregistré à <userinput>C:\db.mdb</userinput> en utilisant la syntaxe complète de ODBC DSN : - <programlisting><![CDATA[ + </para> + <programlisting><![CDATA[ odbc:Driver={Microsoft Access Driver (*.mdb)};Dbq=C:\\db.mdb;Uid=Admin ]]> - </programlisting> - </para> + </programlisting> </example> </para> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/strings/functions/parse-str.xml?r1=1.21&r2=1.22&diff_format=u Index: phpdoc-fr/reference/strings/functions/parse-str.xml diff -u phpdoc-fr/reference/strings/functions/parse-str.xml:1.21 phpdoc-fr/reference/strings/functions/parse-str.xml:1.22 --- phpdoc-fr/reference/strings/functions/parse-str.xml:1.21 Fri May 23 13:46:24 2008 +++ phpdoc-fr/reference/strings/functions/parse-str.xml Thu Jan 8 20:42:26 2009 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.21 $ --> -<!-- EN-Revision: 1.14 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.22 $ --> +<!-- EN-Revision: 1.16 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.parse-str"> @@ -25,17 +25,17 @@ <para> Pour accéder à l'URL appelante <literal>QUERY_STRING</literal>, vous devez utiliser la variable - <link linkend="reserved.variables.server"><varname>$_SERVER['QUERY_STRING']</varname></link>. + <varname>$_SERVER['QUERY_STRING']</varname>. Il est aussi intéressant de lire la section sur les - <link linkend="language.variables.external">variables externes à PHP</link>. + <link linkend="language.variables.external">variables de sources externes</link>. </para> </note> <note> <para> La configuration de <link linkend="ini.magic-quotes-gpc">magic_quotes_gpc</link> affecte l'affichage de cette fonction car <function>parse_str</function> utilise - le même mécanisme que PHP utilise pour propager les variables <literal>$_GET</literal>, - <literal>$_POST</literal>, etc. + le même mécanisme que PHP utilise pour propager les variables <varname>$_GET</varname>, + <varname>$_POST</varname>, etc. </para> </note> </refsect1> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/strings/functions/quotemeta.xml?r1=1.16&r2=1.17&diff_format=u Index: phpdoc-fr/reference/strings/functions/quotemeta.xml diff -u phpdoc-fr/reference/strings/functions/quotemeta.xml:1.16 phpdoc-fr/reference/strings/functions/quotemeta.xml:1.17 --- phpdoc-fr/reference/strings/functions/quotemeta.xml:1.16 Tue Jun 3 05:32:47 2008 +++ phpdoc-fr/reference/strings/functions/quotemeta.xml Thu Jan 8 20:42:26 2009 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.16 $ --> -<!-- EN-Revision: 1.9 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.17 $ --> +<!-- EN-Revision: 1.10 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.quotemeta"> @@ -62,7 +62,7 @@ <member><function>nl2br</function></member> <member><function>stripslashes</function></member> <member><function>stripcslashes</function></member> - <member><function>ereg</function></member> + <member><function>preg_match</function></member> </simplelist> </para> </refsect1> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/strings/functions/setlocale.xml?r1=1.27&r2=1.28&diff_format=u Index: phpdoc-fr/reference/strings/functions/setlocale.xml diff -u phpdoc-fr/reference/strings/functions/setlocale.xml:1.27 phpdoc-fr/reference/strings/functions/setlocale.xml:1.28 --- phpdoc-fr/reference/strings/functions/setlocale.xml:1.27 Sat Jun 21 20:51:45 2008 +++ phpdoc-fr/reference/strings/functions/setlocale.xml Thu Jan 8 20:42:26 2009 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.27 $ --> -<!-- EN-Revision: 1.30 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.28 $ --> +<!-- EN-Revision: 1.32 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <refentry xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://docbook.org/ns/docbook" xml:id="function.setlocale"> @@ -155,6 +155,14 @@ </thead> <tbody> <row> + <entry>5.3.0</entry> + <entry> + Cette fonction émet désormais une alerte E_DEPRECATED si une chaîne + est passée comme paramètre <parameter>category</parameter> au lieu + d'une des constantes <literal>LC_*</literal>. + </entry> + </row> + <row> <entry>4.3.0</entry> <entry> Passer plusieurs locales devient possible. http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/strings/functions/sha1.xml?r1=1.13&r2=1.14&diff_format=u Index: phpdoc-fr/reference/strings/functions/sha1.xml diff -u phpdoc-fr/reference/strings/functions/sha1.xml:1.13 phpdoc-fr/reference/strings/functions/sha1.xml:1.14 --- phpdoc-fr/reference/strings/functions/sha1.xml:1.13 Thu Jun 5 10:48:49 2008 +++ phpdoc-fr/reference/strings/functions/sha1.xml Thu Jan 8 20:42:26 2009 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.13 $ --> -<!-- EN-Revision: 1.11 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.14 $ --> +<!-- EN-Revision: 1.12 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <refentry xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://docbook.org/ns/docbook" xml:id="function.sha1"> @@ -108,6 +108,7 @@ <member><function>sha1_file</function></member> <member><function>crc32</function></member> <member><function>md5</function></member> + <member><function>hash</function></member> </simplelist> </para> </refsect1> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/strings/functions/str-getcsv.xml?r1=1.3&r2=1.4&diff_format=u Index: phpdoc-fr/reference/strings/functions/str-getcsv.xml diff -u phpdoc-fr/reference/strings/functions/str-getcsv.xml:1.3 phpdoc-fr/reference/strings/functions/str-getcsv.xml:1.4 --- phpdoc-fr/reference/strings/functions/str-getcsv.xml:1.3 Sun May 25 07:25:00 2008 +++ phpdoc-fr/reference/strings/functions/str-getcsv.xml Thu Jan 8 20:42:26 2009 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> -<!-- Reviewed: no --> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> +<!-- Reviewed: yes --> <refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.str-getcsv"> <refnamediv> @@ -19,7 +19,58 @@ <methodparam choice="opt"><type>string</type><parameter>escape</parameter></methodparam> </methodsynopsis> <para> - &warn.undocumented.func; + Similaire à la fonction <function>fgetcsv</function>, cette fonction + analyse une chaîne de caractères comme argument, contrairement à + <function>fgetcsv</function> qui prend un fichier. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>input</parameter></term> + <listitem> + <para> + La chaîne à analyser. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>delimiter</parameter></term> + <listitem> + <para> + Le délimiteur de champ (un seul caractère). Par défaut, la virgule (<literal>,</literal>). + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>enclosure</parameter></term> + <listitem> + <para> + Le caractère d'encadrement (un seul caractère). Par défaut, + c'est le guillemet double (<literal>"</literal>). + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>escape</parameter></term> + <listitem> + <para> + Le caractère de protection (un seul caractère). Par défaut, c'est + l'antislash. (<literal>\</literal>) + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + Returns an indexed array containing the fields read. </para> </refsect1> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/var/functions/is-unicode.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc-fr/reference/var/functions/is-unicode.xml diff -u phpdoc-fr/reference/var/functions/is-unicode.xml:1.5 phpdoc-fr/reference/var/functions/is-unicode.xml:1.6 --- phpdoc-fr/reference/var/functions/is-unicode.xml:1.5 Wed Jan 7 21:04:20 2009 +++ phpdoc-fr/reference/var/functions/is-unicode.xml Thu Jan 8 20:42:26 2009 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <refentry xml:id="function.is-unicode" xmlns="http://docbook.org/ns/docbook"> @@ -58,7 +58,7 @@ // Declare a binary string $binary = b'Ceci est une chaîne binaire'; -var_dump(is_unicode($unicode), is_bunicode($binary)); +var_dump(is_unicode($unicode), is_unicode($binary)); ?> ]]> </programlisting>