diff options
Diffstat (limited to 'ip2location-tests.patch')
-rw-r--r-- | ip2location-tests.patch | 18 |
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
|