Closed remicollet closed 3 years ago
Work in git
But ip-country.pl rely on file time, which may be 2021, from official archive (2020 expected by code)
A simple touch -d 20200925 data/*CSV
allow to fix this issue.
But of course this is only a workaround / ugly hack
$ tar tvf IP2Location-8.4.0.tar.gz | grep CSV
-rw-rw-r-- root/root 12534930 2021-05-20 03:48 IP2Location-C-Library-8.4.0/data/IP-COUNTRY.6.CSV
-rw-rw-r-- root/root 4841937 2021-05-20 03:48 IP2Location-C-Library-8.4.0/data/IP-COUNTRY.CSV
It's due to the old Perl script generated the old version of BIN. Already uploaded to latest Perl script.
8.4.0 Still failed tests. ip-country.pl set 29,30 byte to 0 therefore this test fail
if (handler->product_code == 1) {
} else {
if (handler->database_year <= 20 && handler->product_code == 0) {
} else {
printf(INVALID_BIN_DATABASE);
return NULL;
}
}
IP2Loc 8.4.0: test/test-suite.log \=======================================
# TOTAL: 1 # PASS: 0 # SKIP: 0 # XFAIL: 0 # FAIL: 1 # XPASS: 0 # ERROR: 0
.. contents:: :depth: 2
FAIL: test-IP2Location \======================
IP2Location library error in opening database ../data/IP-COUNTRY.BIN. IP2Location API version: 8.4.0 (80400) Please install the database in correct path. FAIL test-IP2Location (exit status: 255)