svn: /phpdoc/fr/trunk/reference/ array/functions/array-key-first.xml array/functions/list.xml curl/functions/curl-multi-setopt.xml
mysql_xdevapi/book.xml
| From: | George Peter Banyard | Date: | Thu, 09 May 2019 13:37:03 +0000 |
| Subject: | svn: /phpdoc/fr/trunk/reference/ array/functions/array-key-first.xml array/functions/list.xml curl/functions/curl-multi-setopt.xml mysql_xdevapi/book.xml |
||
| Groups: | php.doc.fr | ||
| Request: | Send a blank email to doc-fr+get-12932@lists.php.net to get a copy of this message | ||
girgias Thu, 09 May 2019 13:37:03 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=347400
Log:
Sync with latest EN revision
Changed paths:
U phpdoc/fr/trunk/reference/array/functions/array-key-first.xml
U phpdoc/fr/trunk/reference/array/functions/list.xml
U phpdoc/fr/trunk/reference/curl/functions/curl-multi-setopt.xml
U phpdoc/fr/trunk/reference/mysql_xdevapi/book.xml
Modified: phpdoc/fr/trunk/reference/array/functions/array-key-first.xml
===================================================================
--- phpdoc/fr/trunk/reference/array/functions/array-key-first.xml 2019-05-09 10:45:19 UTC (rev
347399)
+++ phpdoc/fr/trunk/reference/array/functions/array-key-first.xml 2019-05-09 13:37:03 UTC (rev
347400)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 345985 Maintainer: jbnahan Status: ready -->
+<!-- EN-Revision: 347396 Maintainer: jbnahan Status: ready -->
<!-- Reviewed: no -->
<refentry xml:id="function.array-key-first" xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink">
@@ -69,6 +69,37 @@
</para>
</refsect1>
+ <refsect1 role="notes">
+ &reftitle.notes;
+ <tip>
+ <simpara>
+ Il y a plusieurs façon de fournir cette fonctionnalité pour les versions antérieur à PHP
7.3.0.
+ Il est possible d'utiliser <function>array_keys</function>, mais ceci est
+ plutôt inefficace. Il est aussi possible d'utiliser
+ <function>reset</function> et <function>key</function>,
+ mais ceci peut changer le pointeur interne du tableau.
+ Une solution efficace, qui ne modifie pas le pointeur interne du tableau,
+ écrit comme un polyfill :
+ </simpara>
+ <informalexample>
+ <programlisting role="php">
+<![CDATA[
+<?php
+if (!function_exists('array_key_first')) {
+ function array_key_first(array $arr) {
+ foreach($arr as $key => $unused) {
+ return $key;
+ }
+ return NULL;
+ }
+}
+?>
+]]>
+ </programlisting>
+ </informalexample>
+ </tip>
+ </refsect1>
+
<refsect1 role="seealso">
&reftitle.seealso;
<simplelist>
Modified: phpdoc/fr/trunk/reference/array/functions/list.xml
===================================================================
--- phpdoc/fr/trunk/reference/array/functions/list.xml 2019-05-09 10:45:19 UTC (rev 347399)
+++ phpdoc/fr/trunk/reference/array/functions/list.xml 2019-05-09 13:37:03 UTC (rev 347400)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 345209 Maintainer: yannick Status: ready -->
+<!-- EN-Revision: 347399 Maintainer: yannick Status: ready -->
<!-- CREDITS: DavidA. -->
<refentry xml:id="function.list" xmlns="http://docbook.org/ns/docbook">
@@ -45,13 +45,6 @@
l'avenir.
</para>
</warning>
- <warning>
- <para>
- La modification du tableau pendant l'exécution de <function>list</function>
- (par exemple <literal>list($a, $b) = $b</literal>) entraîne un
- comportement indéfini.
- </para>
- </warning>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
Modified: phpdoc/fr/trunk/reference/curl/functions/curl-multi-setopt.xml
===================================================================
--- phpdoc/fr/trunk/reference/curl/functions/curl-multi-setopt.xml 2019-05-09 10:45:19 UTC (rev
347399)
+++ phpdoc/fr/trunk/reference/curl/functions/curl-multi-setopt.xml 2019-05-09 13:37:03 UTC (rev
347400)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 341647 Maintainer: yannick Status: ready -->
+<!-- EN-Revision: 347375 Maintainer: yannick Status: ready -->
<!-- Reviewed: no -->
<refentry xml:id="function.curl-multi-setopt" xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink">
@@ -72,8 +72,11 @@
un pipelining HTTP autant que possible pour les transferts utilisant
ce gestionnaire. Cela signifie que, si vous ajouter un second gestionnaire
qui peut utiliser une connexion exis
- À partir de cURL 7.43.0 il est possible de passer 2 pour tenter de multiplex
+ À partir de cURL 7.43.0, la valeur est un masque de bit, et il est possible de passer 2
pour tenter de multiplex
le nouveau transfert via une connexion HTTP/2 existante si possible.
+ Passer 3 ordonne à cURL de demander pour le pipelining et le multiplexing
+ indépendant l'un de l'autre.
+ À partir de cURL 7.62.0, définir le bit de pipelining n'a aucun effet.
Au lieu d'entier litérals, les constantes CURLPIPE_* peuvent être utilisé
si disponible.
</entry>
Modified: phpdoc/fr/trunk/reference/mysql_xdevapi/book.xml
===================================================================
--- phpdoc/fr/trunk/reference/mysql_xdevapi/book.xml 2019-05-09 10:45:19 UTC (rev 347399)
+++ phpdoc/fr/trunk/reference/mysql_xdevapi/book.xml 2019-05-09 13:37:03 UTC (rev 347400)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 345637 Maintainer: girgias Status: ready -->
+<!-- EN-Revision: 347394 Maintainer: girgias Status: ready -->
<!-- Reviewed: no -->
<book xml:id="book.mysql-xdevapi" xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink">