svn: /phpdoc/en/trunk/reference/curl/functions/ curl-setopt.xml
| From: | Andrea Faulds | Date: | Sat, 31 May 2014 14:06:49 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/curl/functions/ curl-setopt.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-12498@lists.php.net to get a copy of this message | ||
ajf Sat, 31 May 2014 14:06:49 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=333635
Log:
Noted CURLOPT_SAFE_UPLOAD in curl_setopt, which was introduced in PHP 5.5
(Finally)
Changed paths:
U phpdoc/en/trunk/reference/curl/functions/curl-setopt.xml
Modified: phpdoc/en/trunk/reference/curl/functions/curl-setopt.xml
===================================================================
--- phpdoc/en/trunk/reference/curl/functions/curl-setopt.xml 2014-05-31 12:01:42 UTC (rev 333634)
+++ phpdoc/en/trunk/reference/curl/functions/curl-setopt.xml 2014-05-31 14:06:49 UTC (rev 333635)
@@ -367,6 +367,20 @@
</entry>
</row>
<row>
+ <entry
valign="top"><constant>CURLOPT_SAFE_UPLOAD</constant></entry>
+ <entry valign="top">
+ &true; to disable support for the <literal>@</literal> prefix for
+ uploading files in <constant>CURLOPT_POSTFIELDS</constant>, which
+ means that values starting with <literal>@</literal> can be safely
+ passed as fields. <classname>CURLFile</classname> may be used for
+ uploads instead.
+ </entry>
+ <entry valign="top">
+ &false; by default at present, but this is likely to be changed in a
+ future version of PHP.
+ </entry>
+ </row>
+ <row>
<entry
valign="top"><constant>CURLOPT_SSL_VERIFYPEER</constant></entry>
<entry valign="top">
&false; to stop cURL from verifying the peer's
@@ -999,7 +1013,10 @@
</simpara>
<simpara>
As of PHP 5.5.0, the <literal>@</literal> prefix is deprecated and
- files can be sent using <classname>CURLFile</classname>.
+ files can be sent using <classname>CURLFile</classname>. The
+ <literal>@</literal> prefix can be disabled for safe passing of
+ values beginning with <literal>@</literal> by setting the
+ <constant>CURLOPT_SAFE_UPLOAD</constant> option to &true;.
</simpara>
</entry>
<entry valign="top">