summaryrefslogtreecommitdiffstats
path: root/ip2location-tests.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2020-11-19 10:37:54 +0100
committerRemi Collet <remi@remirepo.net>2020-11-19 10:37:54 +0100
commit442b0de33b4ab899fd3ee25c5f41a979922d0db1 (patch)
tree70b09b9a5b1c457a992d405f93ff691ce9e7abfc /ip2location-tests.patch
parent0e56f892ce7c3835d969479a6924a4f79204fc56 (diff)
update to 8.1.0
drop all patches merged upstream
Diffstat (limited to 'ip2location-tests.patch')
-rw-r--r--ip2location-tests.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/ip2location-tests.patch b/ip2location-tests.patch
new file mode 100644
index 0000000..e8c4f84
--- /dev/null
+++ b/ip2location-tests.patch
@@ -0,0 +1,18 @@
+diff -up tests/file.phpt.old tests/file.phpt
+--- tests/file.phpt.old 2020-11-19 10:10:14.948127303 +0100
++++ tests/file.phpt 2020-11-19 10:13:24.705560070 +0100
+@@ -11,6 +11,7 @@ var_dump(ip2location_open(__DIR__ . '/IP
+ var_dump(ip2location_open_mem(IP2LOCATION_FILE_IO));
+ var_dump(ip2location_get_country_short('25.5.10.2'));
+ var_dump(ip2location_get_country_long('25.5.10.2'));
++if (function_exists('ip2location_bin_version') && ip2location_bin_version() !== '2013-4-11')
+ var_dump(ip2location_bin_version());
+ var_dump(ip2location_close());
+ ?>
+@@ -20,6 +21,5 @@ bool(true)
+ bool(true)
+ string(2) "UK"
+ string(14) "UNITED KINGDOM"
+-string(9) "2013-4-11"
+ NULL
+ Done