laravel-geoip icon indicating copy to clipboard operation
laravel-geoip copied to clipboard

500 Internal Server Error

Open hongyukeji opened this issue 6 years ago • 0 comments

src/GeoIP.php 241 row add code

// Fixed bug #75794 (getenv() crashes on Windows 7.2.1 when second parameter is false).
if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN'
    && version_compare(PHP_VERSION, '7.1.13', '>=')
    && version_compare(PHP_VERSION, '7.2.10', '<=')) {
    array_splice($remotes_keys, array_search('REMOTE_ADDR', $remotes_keys), 1);
}

hongyukeji avatar Aug 13 '19 09:08 hongyukeji