From 7fd66dfb90f0b99df2a6591361b89ce6dd1c8135 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 29 Jan 2024 17:02:05 +0100 Subject: Fix incompatible pointer types using patch from https://github.com/m6w6/ext-http/pull/134 --- pecl_http-build.patch | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 pecl_http-build.patch (limited to 'pecl_http-build.patch') diff --git a/pecl_http-build.patch b/pecl_http-build.patch new file mode 100644 index 0000000..887a6ed --- /dev/null +++ b/pecl_http-build.patch @@ -0,0 +1,22 @@ +From 88e279db21e25244ecb6b804af0a6565db4ecbf1 Mon Sep 17 00:00:00 2001 +From: Remi Collet +Date: Mon, 29 Jan 2024 16:10:26 +0100 +Subject: [PATCH] Fix incompatible pointer types + +--- + src/php_http_url.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/php_http_url.c b/src/php_http_url.c +index 943a436c..459396f3 100644 +--- a/src/php_http_url.c ++++ b/src/php_http_url.c +@@ -73,7 +73,7 @@ static inline char *localhostname(void) + static php_http_url_t *php_http_url_from_env(void) + { + zval *https, *zhost, *zport; +- long port; ++ zend_long port; + php_http_buffer_t buf; + + php_http_buffer_init_ex(&buf, MAX(PHP_HTTP_BUFFER_DEFAULT_SIZE, sizeof(php_http_url_t)<<2), PHP_HTTP_BUFFER_INIT_PREALLOC); -- cgit