From: Sterling Hughes Date: Fri, 10 Sep 2004 20:36:45 +0000 (+0000) Subject: fix wrong check from return value, binary content should not be \0'd, X-Git-Tag: PRE_NEW_VM_GEN_PATCH~331 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=58cb0d77a0d7a085312df240e587a0d3e8ef4c42;p=php fix wrong check from return value, binary content should not be \0'd, non-binary content should be \0'd. --- 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); }