<email>mike@php.net</email>
<active>yes</active>
</lead>
- <date>2017-04-04</date>
+ <date>2018-04-09</date>
<version>
- <release>3.1.1dev</release>
- <api>3.1.0</api>
+ <release>3.2.0RC1</release>
+ <api>3.2.0</api>
</version>
<stability>
- <release>stable</release>
- <api>stable</api>
+ <release>beta</release>
+ <api>beta</api>
</stability>
<license uri="http://copyfree.org/content/standard/licenses/2bsd/license.txt">BSD-2-Clause</license>
<notes><![CDATA[
-* Fix gh-issue #65: http\Client::enqueue(): Could not enqueue request: The easy handle is already added to a multi handle (@rcanavan, Mike)
+* PHP-7.2 compatibility
+* Fixed gh-issue #73: build fails with libidn and libidn2
++ Added brotli compression support
++ Implemented gh-issue #58: Notify observers before any request is built
]]></notes>
<contents>
<dir name="/">
) {
return PHP_HTTP_BUFFER_NOMEM;
}
- memcpy(buf->data + buf->used, append, append_len);
- buf->used += append_len;
- buf->free -= append_len;
+ if (append_len) {
+ memcpy(buf->data + buf->used, append, append_len);
+ buf->used += append_len;
+ buf->free -= append_len;
+ }
return append_len;
}
char **into, size_t *len)
{
char *copy = ecalloc(1, buf->used + 1);
- memcpy(copy, buf->data, buf->used);
+ if (buf->data) {
+ memcpy(copy, buf->data, buf->used);
+ }
if (into) {
*into = copy;
}