com doc/fr: Apply commit 61f5c7a1f513709b01295cdef5444be4d6bf4ba6: reference/curl/functions/curl-setopt.xml

[email protected] (George Peter Banyard) Tue, 26 Jan 2021 17:32:19 +0000
Newsgroups php.doc.fr
Message-ID <[email protected]>
Commit:    2909062cad4e7bc11f235b5654ca5ef6cb386f03
Author:    George Peter Banyard <[email protected]>         Tue, 26 Jan 2021 17:32:13 +0000
Parents:   f854ec716b872cf4bc8c733f6556f1117706b44c
Branches:  master

Link:       http://git.php.net/?p=doc/fr.git;a=commitdiff;h=2909062cad4e7bc11f235b5654ca5ef6cb386f03

Log:
Apply commit 61f5c7a1f513709b01295cdef5444be4d6bf4ba6

Fix `CURLOPT_MAXREDIRS`/`FOLLOWLOCATION` descriptions

Changed paths:
  M  reference/curl/functions/curl-setopt.xml


Diff:
diff --git a/reference/curl/functions/curl-setopt.xml b/reference/curl/functions/curl-setopt.xml
index d52860cc36..7dcb65738f 100644
--- a/reference/curl/functions/curl-setopt.xml
+++ b/reference/curl/functions/curl-setopt.xml
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: b7f8c11e56ff1c57a2993e2ed7e5c5ace18637fd Maintainer: yannick Status: ready -->
+<!-- EN-Revision: 61f5c7a1f513709b01295cdef5444be4d6bf4ba6 Maintainer: yannick Status: ready -->
 <!-- Reviewed: no -->
 <refentry xml:id="function.curl-setopt" xmlns="http://docbook.org/ns/docbook">
  <refnamediv>
@@ -211,10 +211,8 @@
            <entry valign="top"><constant>CURLOPT_FOLLOWLOCATION</constant></entry>
            <entry valign="top">
             &true; pour suivre tous les en-têtes <literal>"Location: "</literal>
-            que le serveur envoie dans les en-têtes HTTP (à noter que ceci
-            est récursif, PHP suivra tous les en-têtes
-            <literal>"Location: "</literal> qui lui sont envoyés à moins que
-            <constant>CURLOPT_MAXREDIRS</constant> ne soit définie).
+            que le serveur envoie dans les en-têtes HTTP.
+            Voir aussi <constant>CURLOPT_MAXREDIRS</constant>.
            </entry>
            <entry valign="top">
            </entry>
@@ -849,8 +847,11 @@
            <entry valign="top"><constant>CURLOPT_MAXREDIRS</constant></entry>
            <entry valign="top">
             Le nombre maximal de redirections HTTP à suivre.
-            Utilisez cette option avec l'option
-            <constant>CURLOPT_FOLLOWLOCATION</constant>.
+            Utilisez cette option avec l'option <constant>CURLOPT_FOLLOWLOCATION</constant>.
+            Une valeur par défaut de <literal>20</literal> est définit pour prévenir
+            les redirections infinies.
+            Définir à <literal>-1</literal> permet les redirections infinies, et <literal>0</literal>
+            refuse toute redirection.
            </entry>
            <entry valign="top">
            </entry>