diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2005-07-18 13:47:33 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2005-07-18 13:47:33 +0000 |
commit | a6931b3923e05f6f4743096f3e20a4b2d41dace0 (patch) | |
tree | 76bf8e56f8c261f0c70b36c9e1aaa47976f34df0 /ext/curl | |
parent | c4ba9edd57c958c351b025dbbd889963abd58ba7 (diff) | |
download | php-git-a6931b3923e05f6f4743096f3e20a4b2d41dace0.tar.gz |
Cleanup buffers on handle re-use.
Diffstat (limited to 'ext/curl')
-rw-r--r-- | ext/curl/interface.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/ext/curl/interface.c b/ext/curl/interface.c index 636580b8c1..65bcba03bb 100644 --- a/ext/curl/interface.c +++ b/ext/curl/interface.c @@ -1255,11 +1255,7 @@ PHP_FUNCTION(curl_setopt) Cleanup an execution phase */ void _php_curl_cleanup_handle(php_curl *ch) { - if (ch->uses < 1) { - return; - } - - if (ch->handlers->write->buf.len) { + if (ch->handlers->write->buf.len > 0) { memset(&ch->handlers->write->buf, 0, sizeof(smart_str)); } |