fix wrong check from return value, binary content should not be \0'd,

non-binary content should be \0'd.
This commit is contained in:
Sterling Hughes 2004-09-10 20:36:45 +00:00
parent 663e46eee5
commit 58cb0d77a0

View 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);
}