Patch now or wait
| From: | Brian J. France | Date: | Tue, 24 Feb 2004 22:10:51 +0000 |
| Subject: | Patch now or wait | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-8106@lists.php.net to get a copy of this message | ||
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);