maxmind/geoip-api-php — pull request #10 by m00t (2013-09-18 15:02:23+00:00)
Title: Update GEOIP_COUNTRY_EDITION from 106 to 1

Take a look at DB type constants:

In C code https://github.com/maxmind/geoip-api-c/blob/master/libGeoIP/GeoIP.h#L104:
```
typedef enum {
GEOIP_COUNTRY_EDITION = 1,
// skip
} GeoIPDBTypes;
```

In PHP code https://github.com/maxmind/geoip-api-php/blob/master/geoip.inc#L31
```
define("GEOIP_COUNTRY_EDITION", 106);
```

Real (free) country database installed by deb package have version marker FF:FF:FF:01
which does not being recongnized by PHP library and fail when we try to use it.

However, database downloaded from here
```
http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
```
does not have marker FF:FF:FF at all (php library seeks only 20 last bytes in file),
so PHP library simply fallbacks to GEOIP_COUNTRY_EDITION and works fine.