summaryrefslogtreecommitdiff
path: root/ext/curl/multi.c
diff options
context:
space:
mode:
authorFreek <freek.lijten@procurios.nl>2014-01-28 11:47:14 +0100
committerStanislav Malyshev <stas@php.net>2014-04-13 18:12:17 -0700
commit5558d0db9b88a1975b40d4beb5db863c7d87e3c0 (patch)
treecfcf7232a9bc0b5060ea18112a60bbd4aba26b1b /ext/curl/multi.c
parent636adf251c80884c151cb233bbdae1497fdadc4a (diff)
downloadphp-git-5558d0db9b88a1975b40d4beb5db863c7d87e3c0.tar.gz
Fix #66562: Consistency bug where curl_multi_getcontent behaves different from curl_exec
curl_exec returns an empty string when data is received from a domain that returns zero content. curl_multi_getcontent returned null. Now it returns an empty string fixing the incosistency
Diffstat (limited to 'ext/curl/multi.c')
-rw-r--r--ext/curl/multi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/curl/multi.c b/ext/curl/multi.c
index a990dad2f2..c0985e5646 100644
--- a/ext/curl/multi.c
+++ b/ext/curl/multi.c
@@ -253,6 +253,8 @@ PHP_FUNCTION(curl_multi_getcontent)
smart_str_0(&ch->handlers->write->buf);
RETURN_STRINGL(ch->handlers->write->buf.c, ch->handlers->write->buf.len, 1);
}
+
+ RETURN_EMPTY_STRING();
}
/* }}} */