cvs: php4 /ext/curl interface.c
| From: | Sterling Hughes | Date: | Sat, 17 May 2003 14:12:36 +0000 |
| Subject: | cvs: php4 /ext/curl interface.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-20992@lists.php.net to get a copy of this message | ||
sterling Sat May 17 10:12:36 2003 EDT
Modified files:
/php4/ext/curl interface.c
Log:
apply fix from bug #23539
Index: php4/ext/curl/interface.c
diff -u php4/ext/curl/interface.c:1.15 php4/ext/curl/interface.c:1.16
--- php4/ext/curl/interface.c:1.15 Thu May 8 21:10:18 2003
+++ php4/ext/curl/interface.c Sat May 17 10:12:36 2003
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: interface.c,v 1.15 2003/05/09 01:10:18 iliaa Exp $ */
+/* $Id: interface.c,v 1.16 2003/05/17 14:12:36 sterling Exp $ */
#define ZEND_INCLUDE_FULL_WINDOWS_HEADERS
@@ -374,7 +374,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);
@@ -483,7 +483,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: