summaryrefslogtreecommitdiffstats
path: root/ip2location-tests.patch
blob: e8c4f8417be927aaac9e301b9669e2d117650b80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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