From: Michael Wallner Date: Mon, 2 Mar 2015 14:06:18 +0000 (+0100) Subject: fix stddef.h/ptrdiff_t issue X-Git-Tag: RELEASE_2_3_1 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=edd0cca73788b86f1e46587f54375bb76f738f6b;p=m6w6%2Fext-http fix stddef.h/ptrdiff_t issue --- diff --git a/package.xml b/package.xml index f3615c6..476002b 100644 --- a/package.xml +++ b/package.xml @@ -23,12 +23,10 @@ It provides powerful request functionality with support for parallel requests. Documentation: -v1: http://php.net/http -v2: http://devel-m6w6.rhcloud.com/mdref/http +http://devel-m6w6.rhcloud.com/mdref/http Code Coverage: -v1: http://dev.iworks.at/ext-http/lcov_html/ext/http/ -v2: http://dev.iworks.at/ext-http/lcov/ext/http/ +http://dev.iworks.at/ext-http/lcov/ext/http/ ]]> @@ -37,9 +35,9 @@ v2: http://dev.iworks.at/ext-http/lcov/ext/http/ mike@php.net yes - 2015-03-01 + 2015-03-02 - 2.3.1dev + 2.3.1 2.3.0 @@ -48,50 +46,7 @@ v2: http://dev.iworks.at/ext-http/lcov/ext/http/ BSD, revised = 7.30.0) - . max_pipeline_length (int, max number of requests in a pipeline, libcurl >= 7.30.0) - . max_total_connections (int, max number of simultaneous open connections of this client, libcurl >= 7.30.0) - . pipelining (bool, whether to enable HTTP/1.1 pipelining) - . chunk_length_penalty_size (int, chunk length threshold for pipelining, libcurl >= 7.30.0) - . content_length_penalty_size (int, size threshold for pipelining, libcurl >= 7.30.0) - . pipelining_server_bl (array, list of server software names to blacklist for pipelining, libcurl >= 7.30.0) - . pipelining_site_bl (array, list of server host names to blacklist for pipelining, libcurl >= 7.30.0) - . use_eventloop (bool, whether to use libevent, libcurl+libevent) -+ Added http\Client::getAvailableOptions() and http\Client::getAvailableConfiguration() methods -+ Added support for HTTP2 if libcurl was built with nghttp2 support. -+ Added http\Client\Curl\HTTP_VERSION_2_0 constant (libcurl >= 7.33.0) -+ Added http\Client\Curl\TLS_AUTH_SRP constant (libcurl >= 7.21.4) -+ Added pinned_publickey SSL request option (libcurl >= 7.39.0) -+ Added tlsauthtype, tlsauthuser and tlsauthpass SSL request option (libcurl >= 7.21.4) -+ Added verifystatus (a.k.a OCSP) SSL request option (libcurl >= 7.41.0) -+ Added proxyheader request option (libcurl >= 7.37.0) -+ Added unix_socket_path request option (libcurl >= 7.40.0) -* Fixed compress request option -* Fixed parsing authorities of CONNECT messages -* Fixed parsing Content-Range messages -* Fixed http\Env\Response to default to chunked encoding over streams -* Fixed superfluous output of Content-Length:0 headers -* Fixed persistent easy handles to be only created for persistent multi handles -* Fixed the header parser to accept not-yet-complete header lines -* Fixed http\Message::toStream() crash in ZTS mode -* Fixed the message stream parser to handle intermediary data bigger than 4k -* Fixed the message stream parser to handle single header lines without EOL -* Fixed http\Message\Body to not generate stat based etags for temporary streams -- Deprecated http\Client::enablePipelining(), use http\Client::configure(["pipelining" => true]) instead -- Deprecated http\Client::enableEvents(), use http\Client::configure(["use_eventloop" => true]) instead -- Removed the cookies entry from the transfer info, wich was very slow and generated a Netscape formatted list of cookies -- Changed the header parser to reject illegal characters - -Changes from RC1: -* Fixed a shutdown crash with chunked encoded stream responses +* Fixed build on platforms that need stddef.h to define ptrdiff_t (e.g. CentOS 7.5) ]]> diff --git a/php_http.h b/php_http.h index 3ea1b03..c3d327f 100644 --- a/php_http.h +++ b/php_http.h @@ -13,7 +13,7 @@ #ifndef PHP_EXT_HTTP_H #define PHP_EXT_HTTP_H -#define PHP_PECL_HTTP_VERSION "2.3.1dev" +#define PHP_PECL_HTTP_VERSION "2.3.1" extern zend_module_entry http_module_entry; #define phpext_http_ptr &http_module_entry diff --git a/php_http_api.h b/php_http_api.h index 712c8cb..00a09ae 100644 --- a/php_http_api.h +++ b/php_http_api.h @@ -56,6 +56,8 @@ typedef int STATUS; # define PHP_HTTP_HAVE_JSON #endif +#include + #ifdef PHP_WIN32 # define CURL_STATICLIB # include