summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSterling Hughes <sterling@php.net>2004-09-10 20:36:45 +0000
committerSterling Hughes <sterling@php.net>2004-09-10 20:36:45 +0000
commit58cb0d77a0d7a085312df240e587a0d3e8ef4c42 (patch)
tree0efc8b2d92096efb1c46450b87efd26fe7b11707
parent663e46eee5909d0f1d68223122c8455e36e583e9 (diff)
downloadphp-git-58cb0d77a0d7a085312df240e587a0d3e8ef4c42.tar.gz
fix wrong check from return value, binary content should not be \0'd,
non-binary content should be \0'd.
-rw-r--r--ext/curl/multi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/curl/multi.c b/ext/curl/multi.c
index d22540be89..b57907d15e 100644
--- a/ext/curl/multi.c
+++ b/ext/curl/multi.c
@@ -195,7 +195,7 @@ PHP_FUNCTION(curl_multi_getcontent)
ZEND_FETCH_RESOURCE(ch, php_curl *, &z_ch, -1, le_curl_name, le_curl);
if (ch->handlers->write->method == PHP_CURL_RETURN && ch->handlers->write->buf.len > 0) {
- if (ch->handlers->write->type == PHP_CURL_BINARY) {
+ if (ch->handlers->write->type != PHP_CURL_BINARY) {
smart_str_0(&ch->handlers->write->buf);
}