From 54a6c1de7d621f97076eefeb82f0d50ce47f1223 Mon Sep 17 00:00:00 2001 From: Freek Date: Tue, 28 Jan 2014 11:47:14 +0100 Subject: [PATCH] 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 --- ext/curl/multi.c | 2 ++ 1 file changed, 2 insertions(+) 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(); } /* }}} */ -- 2.40.0