iliaa Mon Feb 3 15:56:24 2003 EDT
Modified files:
/php4/ext/curl interface.c
Log:
Fixed bug #22031 (Made curl_write() & curl_write_header() binary safe).
Index: php4/ext/curl/interface.c
diff -u php4/ext/curl/interface.c:1.6 php4/ext/curl/interface.c:1.7
--- php4/ext/curl/interface.c:1.6 Sun Feb 2 15:56:51 2003
+++ php4/ext/curl/interface.c Mon Feb 3 15:56:23 2003
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: interface.c,v 1.6 2003/02/02 20:56:51 iliaa Exp $ */
+/* $Id: interface.c,v 1.7 2003/02/03 20:56:23 iliaa Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -375,7 +375,7 @@
switch (t->method) {
case PHP_CURL_STDOUT:
- PUTS(data);
+ PHPWRITE(data, size);
break;
case PHP_CURL_FILE:
return fwrite(data, size, nmemb, t->fp);
@@ -491,7 +491,7 @@
if (ch->handlers->write->method == PHP_CURL_RETURN)
smart_str_appendl(&ch->handlers->write->buf, data,
(int) length);
else
- PUTS(data);
+ PHPWRITE(data, size);
break;
case PHP_CURL_FILE:
return fwrite(data, size, nmemb, t->fp);
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php