From: Freek Date: Tue, 28 Jan 2014 10:47:14 +0000 (+0100) Subject: Fix #66562: Consistency bug where curl_multi_getcontent behaves different from curl_exec X-Git-Tag: PRE_PHPNG_MERGE~388^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=54a6c1de7d621f97076eefeb82f0d50ce47f1223;p=php 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 --- diff --git a/ext/curl/multi.c b/ext/curl/multi.c index e5c026a513..9fbea5518f 100644 --- a/ext/curl/multi.c +++ b/ext/curl/multi.c @@ -248,6 +248,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(); } /* }}} */