summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2009-06-15 12:38:57 +0000
committerIlia Alshanetsky <iliaa@php.net>2009-06-15 12:38:57 +0000
commita69fb1bcfc7efc316e6f8ee06f084b00d3e8b564 (patch)
tree32cc0f8a9e442631d65ed8399171aa5de4a866bd /ext
parentfacd8866d8e2206588e7d2b48acdba4f54b282be (diff)
downloadphp-git-a69fb1bcfc7efc316e6f8ee06f084b00d3e8b564.tar.gz
MFB: 48518
Diffstat (limited to 'ext')
-rw-r--r--ext/curl/interface.c5
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 {