]> granicus.if.org Git - php/commitdiff
Make curl_setopt($ch,CURLOPT_RETURNTRANSFER,0) reset the RETURNTRANSFER to
authorRasmus Lerdorf <rasmus@php.net>
Tue, 9 Mar 2004 17:11:22 +0000 (17:11 +0000)
committerRasmus Lerdorf <rasmus@php.net>
Tue, 9 Mar 2004 17:11:22 +0000 (17:11 +0000)
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

index f622c8bc77d90818546d0d0bfcd5e6b645de9cf3..0bd32cb705e3143b9c7f91b087de17700c571b18 100644 (file)
@@ -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: