svn: /phpdoc/en/trunk/ appendices/migration56/incompatible.xml reference/curl/functions/curl-setopt.xml
| From: | Christoph Michael Becker | Date: | Sat, 01 Aug 2015 12:23:14 +0000 |
| Subject: | svn: /phpdoc/en/trunk/ appendices/migration56/incompatible.xml reference/curl/functions/curl-setopt.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-13493@lists.php.net to get a copy of this message | ||
cmb Sat, 01 Aug 2015 12:23:14 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=337270
Log:
improved CURLOPT_SAFE_UPLOAD documentation (fixes #70180)
Bug: https://bugs.php.net/70180 (Verified) Breaking CURL
change in PHP 5.6 not mentioned
Changed paths:
U phpdoc/en/trunk/appendices/migration56/incompatible.xml
U phpdoc/en/trunk/reference/curl/functions/curl-setopt.xml
Modified: phpdoc/en/trunk/appendices/migration56/incompatible.xml
===================================================================
--- phpdoc/en/trunk/appendices/migration56/incompatible.xml 2015-08-01 02:29:12 UTC (rev 337269)
+++ phpdoc/en/trunk/appendices/migration56/incompatible.xml 2015-08-01 12:23:14 UTC (rev 337270)
@@ -110,6 +110,15 @@
an IV isn't provided.
</para>
</sect2>
+
+ <sect2 xml:id="migration56.incompatible.curl">
+ <title><link linkend="book.curl">cURL</link> file
uploads</title>
+
+ <para>
+ Uploads using the @file syntax now require CURLOPT_SAFE_UPLOAD to be set to
+ &false;. <classname>CURLFile</classname> should be used instead.
+ </para>
+ </sect2>
</sect1>
<!-- Keep this comment at the end of the file
Modified: phpdoc/en/trunk/reference/curl/functions/curl-setopt.xml
===================================================================
--- phpdoc/en/trunk/reference/curl/functions/curl-setopt.xml 2015-08-01 02:29:12 UTC (rev 337269)
+++ phpdoc/en/trunk/reference/curl/functions/curl-setopt.xml 2015-08-01 12:23:14 UTC (rev 337270)
@@ -1484,7 +1484,7 @@
<row>
<entry>5.6.0</entry>
<entry>
- <constant>CURL_SAFE_UPLOAD</constant> is now &true; by default.
+ <constant>CURLOPT_SAFE_UPLOAD</constant> is now &true; by default.
</entry>
</row>
<row>
@@ -1576,7 +1576,7 @@
</para>
<para>
<example>
- <title>Uploading file</title>
+ <title>Uploading file (deprecated as of PHP 5.5.0)</title>
<programlisting role="php">
<![CDATA[
<?php
@@ -1592,6 +1592,7 @@
curl_setopt($ch, CURLOPT_URL, 'http://localhost/upload.php');
curl_setopt($ch, CURLOPT_POST, 1);
+curl_setopt($ch, CURLOPT_SAFE_UPLOAD, false); // required as of PHP 5.6.0
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
curl_exec($ch);