svn: /phpdoc/en/trunk/reference/curl/functions/ curl-setopt.xml
| From: | Gustavo André dos Santos Lopes | Date: | Mon, 11 Apr 2011 10:39:29 +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-7940@lists.php.net to get a copy of this message | ||
cataphract Mon, 11 Apr 2011 10:39:29 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=310137
Log:
- Fixed description of the CURLOPT_READFUNCTION option.
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 2011-04-11 09:39:26 UTC (rev 310136)
+++ phpdoc/en/trunk/reference/curl/functions/curl-setopt.xml 2011-04-11 10:39:29 UTC (rev 310137)
@@ -1208,10 +1208,13 @@
<entry
valign="top"><constant>CURLOPT_READFUNCTION</constant></entry>
<entry valign="top">
The name of a callback function where the callback function takes
- two parameters. The first is the cURL resource, and the second is a
- string with the data to be read. The data must be read by using this
- callback function. Return the number of bytes read. Return 0 to signal
- <literal>EOF</literal>.
+ three parameters. The first is the cURL resource, the second is a
+ stream resource provided to cURL through the option
+ <constant>CURLOPT_INFILE</constant>, and the third is the maximum
+ amount of data to be read. The callback function must return a string
+ with a length equal or smaller than the amount of data requested,
+ typically by reading it from the passed stream resource. It should
+ return an empty string to signal <literal>EOF</literal>.
</entry>
</row>
<row>