I have already run this past Sterling, but figured I would make sure there are no other objections to applying this patch to both 4.3 and HEAD.

It allows switching back to the standard output by calling:

curl_setopt($ch, CURLOPT_RETURNTRANSFER, 0);

Thanks,

Brian

---- Based on 4.3.4 source ---

--- ext/curl/curl.c.orig Fri Feb 20 13:35:39 2004
+++ ext/curl/curl.c Fri Feb 20 13:37:15 2004
@@ -803,6 +809,9 @@
if (Z_LVAL_PP(zvalue)) {
ch->handlers->write->method = PHP_CURL_RETURN;
}
+ else {
+ ch->handlers->write->method = PHP_CURL_STDOUT;
+ }
break;
case CURLOPT_BINARYTRANSFER:
convert_to_long_ex(zvalue);


--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to