summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRasmus Lerdorf <rasmus@php.net>2004-03-09 17:06:53 +0000
committerRasmus Lerdorf <rasmus@php.net>2004-03-09 17:06:53 +0000
commit89eaec22b5f2005c62461b17db3ff0ef3642f25a (patch)
treef18ccb8640a949d9c7ca9c3d7ca821d127dc30fa
parenta99c6916f32f8fb9ec76c01041c56c46bbc52a92 (diff)
downloadphp-git-89eaec22b5f2005c62461b17db3ff0ef3642f25a.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.
-rw-r--r--ext/curl/curl.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/curl/curl.c b/ext/curl/curl.c
index 64c637bb1b..93b1a80cbf 100644
--- a/ext/curl/curl.c
+++ b/ext/curl/curl.c
@@ -802,7 +802,9 @@ 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:
convert_to_long_ex(zvalue);