summaryrefslogtreecommitdiff
path: root/ext/curl
diff options
context:
space:
mode:
authorRasmus Lerdorf <rasmus@php.net>2004-03-09 17:11:22 +0000
committerRasmus Lerdorf <rasmus@php.net>2004-03-09 17:11:22 +0000
commit3189068f4ede7921b6b9c0ffbe918cf19e3626aa (patch)
tree9583d2940c8fec4850ee9693fbe4aa8d40899486 /ext/curl
parent56834c958dcae4a5e42ff6e9dcb06f8cedbb43f1 (diff)
downloadphp-git-3189068f4ede7921b6b9c0ffbe918cf19e3626aa.tar.gz
Make curl_setopt($ch,CURLOPT_RETURNTRANSFER,0) reset the RETURNTRANSFER to
stdout as is implied in the documentation. Currently it simply does absolutely nothing and there is no way to reset it to stdout.
Diffstat (limited to 'ext/curl')
-rw-r--r--ext/curl/interface.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/curl/interface.c b/ext/curl/interface.c
index f622c8bc77..0bd32cb705 100644
--- a/ext/curl/interface.c
+++ b/ext/curl/interface.c
@@ -918,6 +918,8 @@ PHP_FUNCTION(curl_setopt)
if (Z_LVAL_PP(zvalue)) {
ch->handlers->write->method = PHP_CURL_RETURN;
+ } else {
+ ch->handlers->write->method = PHP_CURL_STDOUT;
}
break;
case CURLOPT_BINARYTRANSFER: