From 3189068f4ede7921b6b9c0ffbe918cf19e3626aa Mon Sep 17 00:00:00 2001 From: Rasmus Lerdorf Date: Tue, 9 Mar 2004 17:11:22 +0000 Subject: [PATCH] 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. --- ext/curl/interface.c | 2 ++ 1 file changed, 2 insertions(+) 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: -- 2.50.1