From 58cb0d77a0d7a085312df240e587a0d3e8ef4c42 Mon Sep 17 00:00:00 2001 From: Sterling Hughes Date: Fri, 10 Sep 2004 20:36:45 +0000 Subject: [PATCH] fix wrong check from return value, binary content should not be \0'd, non-binary content should be \0'd. --- ext/curl/multi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.50.1