Skip to content

Commit

Permalink
Fix #66562: Consistency bug where curl_multi_getcontent behaves diffe…
Browse files Browse the repository at this point in the history
…rent 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
  • Loading branch information
Freek authored and smalyshev committed Apr 14, 2014
1 parent 636adf2 commit 5558d0d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ PHP NEWS
. Fixed bug #67024 (getimagesize should recognize BMP files with negative
height). (Gabor Buella)

- cURL:
. Fixed bug #66562 (curl_exec returns differently than curl_multi_getcontent).
(Freek Lijten)

- Date:
. Fixed bug #66721 (__wakeup of DateTime segfaults when invalid object data is
supplied). (Boro Sitnikovski)
Expand Down
2 changes: 2 additions & 0 deletions ext/curl/multi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
/* }}} */

Expand Down

0 comments on commit 5558d0d

Please sign in to comment.