Fix Segfault with geoip extension and GeoIP API 1.5

Reference: https://bugs.php.net/bug.php?id=64692