summaryrefslogtreecommitdiffstats
path: root/0001-Fix-compatibility-with-PHP-7.patch
diff options
context:
space:
mode:
Diffstat (limited to '0001-Fix-compatibility-with-PHP-7.patch')
-rw-r--r--0001-Fix-compatibility-with-PHP-7.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/0001-Fix-compatibility-with-PHP-7.patch b/0001-Fix-compatibility-with-PHP-7.patch
new file mode 100644
index 0000000..5b3b493
--- /dev/null
+++ b/0001-Fix-compatibility-with-PHP-7.patch
@@ -0,0 +1,29 @@
+From 80fbfac1c328a3100c8aa8082cde61e12c3d917e Mon Sep 17 00:00:00 2001
+From: Remi Collet <remi@remirepo.net>
+Date: Thu, 23 Apr 2026 09:18:26 +0200
+Subject: [PATCH 1/2] Fix compatibility with PHP 7
+
+---
+ geoip.c | 6 ++++++
+ 1 file changed, 6 insertions(+)
+
+diff --git a/geoip.c b/geoip.c
+index 7533a75..8c68248 100644
+--- a/geoip.c
++++ b/geoip.c
+@@ -33,6 +33,12 @@
+ #include "php_ini.h"
+ #include "ext/standard/info.h"
+
++/* for PHP 7.x */
++#ifndef ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE
++#define ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(pass_by_ref, name, type_hint, allow_null, default_value) \
++ ZEND_ARG_TYPE_INFO(pass_by_ref, name, type_hint, allow_null)
++#endif
++
+ #include "geoip_arginfo.h"
+ #include "php_geoip.h"
+
+--
+2.53.0
+