diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2009-06-15 12:37:37 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2009-06-15 12:37:37 +0000 |
commit | bb55de47cd6a1f32b4e3465b7de5576cf4c96fc6 (patch) | |
tree | bfb8fd7eff0b77e9376e8f5df323f6a8a262eb2f | |
parent | 4a110443df241e79dd86039036bbab2b0d8d0335 (diff) | |
download | php-git-bb55de47cd6a1f32b4e3465b7de5576cf4c96fc6.tar.gz |
Simplify original fix for bug #33475
-rw-r--r-- | ext/curl/interface.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/ext/curl/interface.c b/ext/curl/interface.c index 95dd98cc9a..11ff10570d 100644 --- a/ext/curl/interface.c +++ b/ext/curl/interface.c @@ -2047,14 +2047,11 @@ PHP_FUNCTION(curl_exec) RETURN_FALSE; } - ch->uses++; - if (ch->handlers->write->method == PHP_CURL_RETURN && ch->handlers->write->buf.len > 0) { - --ch->uses; smart_str_0(&ch->handlers->write->buf); RETURN_STRINGL(ch->handlers->write->buf.c, ch->handlers->write->buf.len, 1); } - --ch->uses; + if (ch->handlers->write->method == PHP_CURL_RETURN) { RETURN_EMPTY_STRING(); } else { |