]> granicus.if.org Git - php/commitdiff
fix wrong check from return value, binary content should not be \0'd,
authorSterling Hughes <sterling@php.net>
Fri, 10 Sep 2004 20:36:45 +0000 (20:36 +0000)
committerSterling Hughes <sterling@php.net>
Fri, 10 Sep 2004 20:36:45 +0000 (20:36 +0000)
non-binary content should be \0'd.

ext/curl/multi.c

index d22540be89dc7cf4cbfbd436384352e7e2348592..b57907d15ec44724d2d1d71108d952ff96fd52b2 100644 (file)
@@ -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);
                }