mirror of
https://github.com/php/php-src.git
synced 2024-11-25 19:05:31 +08:00
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:
parent
663e46eee5
commit
58cb0d77a0
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user