Browse Source

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.
PEAR_1_4DEV
Rasmus Lerdorf 23 years ago
parent
commit
3189068f4e
  1. 2
      ext/curl/interface.c

2
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:

Loading…
Cancel
Save