summaryrefslogtreecommitdiffstats
path: root/pecl_http-build.patch
diff options
context:
space:
mode:
Diffstat (limited to 'pecl_http-build.patch')
-rw-r--r--pecl_http-build.patch22
1 files changed, 22 insertions, 0 deletions
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 <remi@remirepo.net>
+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);