From 80fbfac1c328a3100c8aa8082cde61e12c3d917e Mon Sep 17 00:00:00 2001 From: Remi Collet 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