summaryrefslogtreecommitdiffstats
path: root/geoip-php81.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2021-06-11 09:01:11 +0200
committerRemi Collet <remi@remirepo.net>2021-06-11 09:01:11 +0200
commit8cbd21ecee1febc6b8e17da3ce04b408e108fc94 (patch)
tree80601c06426e7a4d441bdaaf8eecdfd44bc5786a /geoip-php81.patch
parentac6c3fa875d5cef523bc40a029ce06eff09da4d6 (diff)
add upstream patch for PHP 8.1
Diffstat (limited to 'geoip-php81.patch')
-rw-r--r--geoip-php81.patch63
1 files changed, 63 insertions, 0 deletions
diff --git a/geoip-php81.patch b/geoip-php81.patch
new file mode 100644
index 0000000..18c4769
--- /dev/null
+++ b/geoip-php81.patch
@@ -0,0 +1,63 @@
+From e24c5e54098958a1acc65b8830bc245c7d0662e6 Mon Sep 17 00:00:00 2001
+From: Remi Collet <remi@php.net>
+Date: Fri, 11 Jun 2021 08:54:44 +0200
+Subject: [PATCH] don't test NULL raising deprecation in 8.1 (and will be
+ removed later)
+
+---
+ tests/014.phpt | 8 ++------
+ tests/016.phpt | 8 --------
+ 2 files changed, 2 insertions(+), 14 deletions(-)
+
+diff --git a/tests/014.phpt b/tests/014.phpt
+index 40f3ef8..93bc1f7 100644
+--- a/tests/014.phpt
++++ b/tests/014.phpt
+@@ -8,10 +8,9 @@ Checking timezone info with (some) empty fields
+ <?php
+
+ var_dump(geoip_time_zone_by_country_and_region('US','MA'));
+-var_dump(geoip_time_zone_by_country_and_region('US',NULL));
++var_dump(geoip_time_zone_by_country_and_region('US',''));
+ var_dump(geoip_time_zone_by_country_and_region('DE'));
+-var_dump(geoip_time_zone_by_country_and_region(NULL,''));
+-var_dump(geoip_time_zone_by_country_and_region(NULL,NULL));
++var_dump(geoip_time_zone_by_country_and_region('',''));
+
+ ?>
+ --EXPECTF--
+@@ -21,6 +20,3 @@ string(%d) "Europe/%s"
+
+ Warning: geoip_time_zone_by_country_and_region(): You need to specify at least the country code. in %s on line %d
+ bool(false)
+-
+-Warning: geoip_time_zone_by_country_and_region(): You need to specify at least the country code. in %s on line %d
+-bool(false)
+diff --git a/tests/016.phpt b/tests/016.phpt
+index 83c5250..9b2f056 100644
+--- a/tests/016.phpt
++++ b/tests/016.phpt
+@@ -8,10 +8,8 @@ Checking geoip_region_name_by_code with (some) empty fields
+ <?php
+
+ var_dump(geoip_region_name_by_code('CA',''));
+-var_dump(geoip_region_name_by_code('CA',NULL));
+ var_dump(geoip_region_name_by_code('CA',1));
+ var_dump(geoip_region_name_by_code('','QC'));
+-var_dump(geoip_region_name_by_code(NULL,'QC'));
+ var_dump(geoip_region_name_by_code(1,'QC'));
+
+ ?>
+@@ -19,12 +17,6 @@ var_dump(geoip_region_name_by_code(1,'QC'));
+
+ Warning: geoip_region_name_by_code(): You need to specify the country and region codes. in %s on line %d
+ bool(false)
+-
+-Warning: geoip_region_name_by_code(): You need to specify the country and region codes. in %s on line %d
+-bool(false)
+-bool(false)
+-
+-Warning: geoip_region_name_by_code(): You need to specify the country and region codes. in %s on line %d
+ bool(false)
+
+ Warning: geoip_region_name_by_code(): You need to specify the country and region codes. in %s on line %d