blob: 5b3b4936221732cf8ef33a6e06235821d6ed152a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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
|