From a9b5cbfc56a4fcb52e8cf4d353a8b64a8b9acbb2 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Mon, 7 Sep 2015 11:32:40 +0200 Subject: [PATCH] add "path_as_is" request option (libcurl >=7.42) --- package.xml | 11 ++--------- php_http.h | 2 +- php_http_client_curl.c | 6 ++++++ 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/package.xml b/package.xml index d97a99f..e04ee2f 100644 --- a/package.xml +++ b/package.xml @@ -37,7 +37,7 @@ http://dev.iworks.at/ext-http/lcov/ext/http/ 2015-07-28 - 2.5.1 + 2.5.2dev 2.5.0 @@ -46,14 +46,7 @@ http://dev.iworks.at/ext-http/lcov/ext/http/ BSD, revised = 7.42 with gnutls (openssl has already been since 7.19.1) -+ Added "falsestart" SSL request option (available with libcurl >= 7.42 and darwinssl/NSS) -+ Added "service_name" and "proxy_service_name" request options for SPNEGO (available with libcurl >= 7.43) -+ Enabled "certinfo" transfer info on all supporting SSL backends (OpenSSL: libcurl v7.19.1, NSS: libcurl v7.34.0, GSKit: libcurl v7.39.0, GnuTLS: libcurl v7.42.0) ++ Added "path_as_is" request option (libcurl >= 7.42) ]]> diff --git a/php_http.h b/php_http.h index 97b3ebc..4cb4d04 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.5.1" +#define PHP_PECL_HTTP_VERSION "2.5.2dev" extern zend_module_entry http_module_entry; #define phpext_http_ptr &http_module_entry diff --git a/php_http_client_curl.c b/php_http_client_curl.c index 78c552a..763525f 100644 --- a/php_http_client_curl.c +++ b/php_http_client_curl.c @@ -1212,6 +1212,11 @@ static void php_http_curle_options_init(php_http_options_t *registry TSRMLS_DC) { php_http_option_t *opt; + /* url options */ +#if PHP_HTTP_CURL_VERSION(7,42,0) + php_http_option_register(registry, ZEND_STRL("path_as_is"), CURLOPT_PATH_AS_IS, IS_BOOL); +#endif + /* proxy */ if ((opt = php_http_option_register(registry, ZEND_STRL("proxyhost"), CURLOPT_PROXY, IS_STRING))) { opt->flags |= PHP_HTTP_CURLE_OPTION_CHECK_STRLEN; @@ -1511,6 +1516,7 @@ static void php_http_curle_options_init(php_http_options_t *registry TSRMLS_DC) } #endif #if PHP_HTTP_CURL_VERSION(7,39,0) + /* FIXME: see http://curl.haxx.se/libcurl/c/CURLOPT_PINNEDPUBLICKEY.html#AVAILABILITY */ if ((opt = php_http_option_register(registry, ZEND_STRL("pinned_publickey"), CURLOPT_PINNEDPUBLICKEY, IS_STRING))) { opt->flags |= PHP_HTTP_CURLE_OPTION_CHECK_STRLEN; opt->flags |= PHP_HTTP_CURLE_OPTION_CHECK_BASEDIR; -- 2.30.2