Skip to content

Incorrect php version check in getIP.php #753

@cnszlijz

Description

@cnszlijz

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions