Want more timely Centmin Mod News Updates?
Become a Member

Beta Branch skip legacy geoip PHP extension on unsupported PHP and EL versions in…

Discussion in 'Centmin Mod Github Commits' started by eva2000, Aug 16, 2026.

  1. eva2000

    eva2000 Administrator Staff Member

    60,147
    12,591
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,249
    Local Time:
    3:27 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    skip legacy geoip PHP extension on unsupported PHP and EL versions in 140.00beta01


    The legacy geoip PECL extension build has no PHP version guard and no
    libGeoIP header check, and its geoip.ini was written unconditionally
    even when the build failed - leaving extension=geoip.so pointing at
    nothing forever. Upstream php/pecl-networking-geoip has had no commits
    since June 2021; its last fixes cover PHP 8.0/8.1 only, and GeoIP-devel
    headers were retired from RHEL/EPEL 9+.

    Changes:
    - inc/geoip.inc: geoipphpext now skips the legacy build when php-config
    is missing, when PHP is at/above PHPGEOIP_MAXVERNUM (default 80200,
    overridable via custom_config.inc), or when GeoIP.h headers are absent
    - falling back to the maintained GeoIP2/maxminddb extension and
    removing any orphaned geoip.ini in the process
    - inc/geoip.inc: geoip.ini and maxminddb.ini are now written only when
    the built .so actually exists in the PHP extension dir; a failed build
    removes the stale ini instead of poisoning later reinstall checks
    - inc/geoip.inc: append to the shared install error log instead of
    truncating it

    Continue reading...

    140.00beta01 branch