cvs: php4(PHP_4_3) /ext/curl curl.c
| From: | Jani Taskinen | Date: | Mon, 19 May 2003 14:19:34 +0000 |
| Subject: | cvs: php4(PHP_4_3) /ext/curl curl.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-21077@lists.php.net to get a copy of this message | ||
sniper Mon May 19 10:19:34 2003 EDT
Modified files: (Branch: PHP_4_3)
/php4/ext/curl curl.c
Log:
MFH: Fixed bug #23539 (curl_exec() produces strange results). (daniel@haxx.se)
Index: php4/ext/curl/curl.c
diff -u php4/ext/curl/curl.c:1.124.2.9 php4/ext/curl/curl.c:1.124.2.10
--- php4/ext/curl/curl.c:1.124.2.9 Thu May 8 21:10:24 2003
+++ php4/ext/curl/curl.c Mon May 19 10:19:33 2003
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: curl.c,v 1.124.2.9 2003/05/09 01:10:24 iliaa Exp $ */
+/* $Id: curl.c,v 1.124.2.10 2003/05/19 14:19:33 sniper Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -338,7 +338,7 @@
switch (t->method) {
case PHP_CURL_STDOUT:
- PHPWRITE(data, size);
+ PHPWRITE(data, length);
break;
case PHP_CURL_FILE:
return fwrite(data, size, nmemb, t->fp);
@@ -458,7 +458,7 @@
if (ch->handlers->write->method == PHP_CURL_RETURN)
smart_str_appendl(&ch->handlers->write->buf, data, (int) length);
else
- PHPWRITE(data, size);
+ PHPWRITE(data, length);
break;
case PHP_CURL_FILE:
return fwrite(data, size, nmemb, t->fp);