Description
getIP.php only check PHP_MAJOR_VERSION >= 8 while loading geoip2.phar. But in geoip2.phar/vendor/composer/platform_check.php it checks PHP_VERSION_ID >= 80100, otherwise it will cause a fatal error. As getIP.php has set error_reporting(0), if the server use php v8.0.0 it will return HTTP 500 with nothing.
Server
nginx, php v8.0.0
Client
any
Steps to reproduce
visit /backend/getIP.php
Description
getIP.php only check
PHP_MAJOR_VERSION >= 8while loading geoip2.phar. But in geoip2.phar/vendor/composer/platform_check.php it checksPHP_VERSION_ID >= 80100, otherwise it will cause a fatal error. As getIP.php has seterror_reporting(0), if the server use php v8.0.0 it will return HTTP 500 with nothing.Server
nginx, php v8.0.0
Client
any
Steps to reproduce
visit /backend/getIP.php