diff options
| author | Ilia Alshanetsky <iliaa@php.net> | 2009-06-15 12:38:57 +0000 |
|---|---|---|
| committer | Ilia Alshanetsky <iliaa@php.net> | 2009-06-15 12:38:57 +0000 |
| commit | a69fb1bcfc7efc316e6f8ee06f084b00d3e8b564 (patch) | |
| tree | 32cc0f8a9e442631d65ed8399171aa5de4a866bd /ext | |
| parent | facd8866d8e2206588e7d2b48acdba4f54b282be (diff) | |
| download | php-git-a69fb1bcfc7efc316e6f8ee06f084b00d3e8b564.tar.gz | |
MFB: 48518
Diffstat (limited to 'ext')
| -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 7b7ab873bf..9c2fc33176 100644 --- a/ext/curl/interface.c +++ b/ext/curl/interface.c @@ -2113,14 +2113,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 { |
