svn: /phpdoc/fr/trunk/ language-snippets.ent reference/datetime/functions/mktime.xml reference/ldap/functions/ldap-control-paged-result-response.xml
reference/ldap/functions/ldap-control-paged-result.xml reference/mysqli/mysqli_stmt/field-count.xml reference/mysqli/mysqli_stmt/param-count.xml

From: Date: Tue, 22 Dec 2020 17:43:59 +0000
Subject: svn: /phpdoc/fr/trunk/ language-snippets.ent reference/datetime/functions/mktime.xml reference/ldap/functions/ldap-control-paged-result-response.xml
reference/ldap/functions/ldap-control-paged-result.xml reference/mysqli/mysqli_stmt/field-count.xml reference/mysqli/mysqli_stmt/param-count.xml
Groups: php.doc.fr 
Request: Send a blank email to doc-fr+get-13414@lists.php.net to get a copy of this message
girgias Tue, 22 Dec 2020 17:43:59 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=352170 Log: Sync FR with EN Changed paths: U phpdoc/fr/trunk/language-snippets.ent U phpdoc/fr/trunk/reference/datetime/functions/mktime.xml U phpdoc/fr/trunk/reference/ldap/functions/ldap-control-paged-result-response.xml U phpdoc/fr/trunk/reference/ldap/functions/ldap-control-paged-result.xml U phpdoc/fr/trunk/reference/mysqli/mysqli_stmt/field-count.xml U phpdoc/fr/trunk/reference/mysqli/mysqli_stmt/param-count.xml Modified: phpdoc/fr/trunk/language-snippets.ent =================================================================== --- phpdoc/fr/trunk/language-snippets.ent 2020-12-22 17:21:44 UTC (rev 352169) +++ phpdoc/fr/trunk/language-snippets.ent 2020-12-22 17:43:59 UTC (rev 352170) @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> -<!-- EN-Revision: 352143 Maintainer: yannick Status: ready --> +<!-- EN-Revision: 352166 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <!-- Relecture des Notes, Précautions, Avertissements, Astuces, Divers et Retour le 2018-12-29 par girgias --> @@ -1010,6 +1010,15 @@ <!-- LDAP notes --> +<!ENTITY ldap.warn.control-paged '<warning xmlns="http://docbook.org/ns/docbook"> + <simpara> + Cette fonction est <emphasis>OBSOLÈTE</emphasis> à partir de PHP 7.4.0, + et <emphasis>SUPPRIMÉE</emphasis> à partir de PHP 8.0.0. + À la place le paramètre <parameter>controls</parameter> de <function>ldap_search</function> devrait être utilisée. + Voir les <link linkend="ldap.controls">Contrôles LDAP</link> pour plus d&#39;information. + </simpara> +</warning>'> + <!ENTITY ldap.changelog.controls-nullable '<row xmlns="http://docbook.org/ns/docbook"> <entry>8.0.0</entry> <entry> Modified: phpdoc/fr/trunk/reference/datetime/functions/mktime.xml =================================================================== --- phpdoc/fr/trunk/reference/datetime/functions/mktime.xml 2020-12-22 17:21:44 UTC (rev 352169) +++ phpdoc/fr/trunk/reference/datetime/functions/mktime.xml 2020-12-22 17:43:59 UTC (rev 352170) @@ -39,18 +39,6 @@ </simpara> </refsect1> - <refsect1 role="notes"> - &reftitle.notes; - <note> - <para> - À partir de PHP 5.1, lorsqu'appelée sans argument, la fonction - <function>mktime</function> émet une alerte de type - <constant>E_STRICT</constant> : utilisez la fonction - <function>time</function> à la place. - </para> - </note> - </refsect1> - <refsect1 role="parameters"> &reftitle.parameters; <para> Modified: phpdoc/fr/trunk/reference/ldap/functions/ldap-control-paged-result-response.xml =================================================================== --- phpdoc/fr/trunk/reference/ldap/functions/ldap-control-paged-result-response.xml 2020-12-22 17:21:44 UTC (rev 352169) +++ phpdoc/fr/trunk/reference/ldap/functions/ldap-control-paged-result-response.xml 2020-12-22 17:43:59 UTC (rev 352170) @@ -1,8 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> -<!-- EN-Revision: 349064 Maintainer: yannick Status: ready --> +<!-- EN-Revision: 352166 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> - <refentry xml:id='function.ldap-control-paged-result-response' xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> @@ -12,7 +11,7 @@ </refnamediv> <refsynopsisdiv> - &warn.deprecated.function-7-4-0; + &ldap.warn.control-paged; </refsynopsisdiv> <refsect1 role="description"> Modified: phpdoc/fr/trunk/reference/ldap/functions/ldap-control-paged-result.xml =================================================================== --- phpdoc/fr/trunk/reference/ldap/functions/ldap-control-paged-result.xml 2020-12-22 17:21:44 UTC (rev 352169) +++ phpdoc/fr/trunk/reference/ldap/functions/ldap-control-paged-result.xml 2020-12-22 17:43:59 UTC (rev 352170) @@ -1,8 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> -<!-- EN-Revision: 349064 Maintainer: yannick Status: ready --> +<!-- EN-Revision: 352166 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> - <refentry xml:id='function.ldap-control-paged-result' xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> @@ -12,7 +11,7 @@ </refnamediv> <refsynopsisdiv> - &warn.deprecated.function-7-4-0; + &ldap.warn.control-paged; </refsynopsisdiv> <refsect1 role="description"> Modified: phpdoc/fr/trunk/reference/mysqli/mysqli_stmt/field-count.xml =================================================================== --- phpdoc/fr/trunk/reference/mysqli/mysqli_stmt/field-count.xml 2020-12-22 17:21:44 UTC (rev 352169) +++ phpdoc/fr/trunk/reference/mysqli/mysqli_stmt/field-count.xml 2020-12-22 17:43:59 UTC (rev 352170) @@ -1,13 +1,12 @@ <?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> -<!-- EN-Revision: 322008 Maintainer: yannick Status: ready --> +<!-- EN-Revision: 352160 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> - <refentry xml:id="mysqli-stmt.field-count" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>mysqli_stmt::$field_count</refname> <refname>mysqli_stmt_field_count</refname> - <refpurpose>Retourne le nombre de champs présent dans la requête donnée</refpurpose> + <refpurpose>Retourne le nombre de colonnes dans la requête donnée</refpurpose> </refnamediv> <refsect1 role="description"> @@ -19,11 +18,89 @@ <type>int</type><methodname>mysqli_stmt_field_count</methodname> <methodparam><type>mysqli_stmt</type><parameter>stmt</parameter></methodparam> </methodsynopsis> + <para> + Retourne le nombre de colonnes dans la déclaration préparée. + </para> + </refsect1> - &warn.undocumented.func; + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + &mysqli.stmt.description; + </variablelist> + </para> + </refsect1> + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + Retourne un entier représentant le nombre de colonnes. + </para> </refsect1> + <refsect1 role="examples"> + &reftitle.examples; + <example> + <title>&style.oop;</title> + <programlisting role="php"> +<![CDATA[ +<?php + +mysqli_report(MYSQLI_REPORT_ERROR | MYSQLI_REPORT_STRICT); +$mysqli = new mysqli("localhost", "my_user", "my_password", "world"); + +$code = 'FR'; + +$stmt = $mysqli->prepare("SELECT Name FROM Country WHERE Code=?"); +$stmt->bind_param('s', $code); +$stmt->execute(); +$row = $stmt->get_result()->fetch_row(); +for ($i = 0; $i < $stmt->field_count; $i++) { + printf("Value of column number %d is %s", $i, $row[$i]); +} +]]> + </programlisting> + </example> + <example> + <title>&style.procedural;</title> + <programlisting role="php"> +<![CDATA[ +<?php + +mysqli_report(MYSQLI_REPORT_ERROR | MYSQLI_REPORT_STRICT); +$mysqli = mysqli_connect("localhost", "my_user", "my_password", "world"); + +$code = 'FR'; + +$stmt = mysqli_prepare($mysqli, "SELECT Name FROM Country WHERE Code=?"); +mysqli_stmt_bind_param($stmt, 's', $code); +mysqli_stmt_execute($stmt); +$result = mysqli_stmt_get_result($stmt); +$row = mysqli_fetch_row($result); +for ($i = 0; $i < mysqli_stmt_field_count($stmt); $i++) { + printf("Value of column number %d is %s", $i, $row[$i]); +} +]]> + </programlisting> + &examples.outputs.similar; + <screen> +<![CDATA[ +Value of column number 0 is France +]]> + </screen> + </example> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>mysqli_stmt_num_rows</function></member> + </simplelist> + </para> + </refsect1> + </refentry> <!-- Keep this comment at the end of the file Modified: phpdoc/fr/trunk/reference/mysqli/mysqli_stmt/param-count.xml =================================================================== --- phpdoc/fr/trunk/reference/mysqli/mysqli_stmt/param-count.xml 2020-12-22 17:21:44 UTC (rev 352169) +++ phpdoc/fr/trunk/reference/mysqli/mysqli_stmt/param-count.xml 2020-12-22 17:43:59 UTC (rev 352170) @@ -1,13 +1,12 @@ <?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> -<!-- EN-Revision: 322008 Maintainer: yannick Status: ready --> -<!-- Reviewed: yes --> - +<!-- EN-Revision: 352160 Maintainer: yannick Status: ready --> +<!-- Reviewed: no --> <refentry xml:id="mysqli-stmt.param-count" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>mysqli_stmt::$param_count</refname> <refname>mysqli_stmt_param_count</refname> - <refpurpose>Retourne le nombre de paramètre d'une commande SQL</refpurpose> + <refpurpose>Retourne le nombre de paramètres d'une commande SQL</refpurpose> </refnamediv> <refsect1 role="description">

« previous php.doc.fr (#13414) next »