Get the most out of your Centmin Mod LEMP stack
Become a Member

Beta Branch fix PHP extension dir detection on PHP 8.4 and newer in 140.00beta01

Discussion in 'Centmin Mod Github Commits' started by eva2000, Nov 14, 2026 at 9:34 PM.

  1. eva2000

    eva2000 Administrator Staff Member

    60,407
    12,614
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,273
    Local Time:
    11:51 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    fix PHP extension dir detection on PHP 8.4 and newer in 140.00beta01


    PHP 8.4+ php-config writes extension_dir with double quotes, and the awk
    parse used by the PHP extension installers only stripped single quotes, so
    the extension dir kept the quotes. Ask php-config --extension-dir instead.

    The ini extension dir rewrite only ran at the end of
    autodetectinstallextensions(), so an extension build failure during a major
    PHP version change left ini files pointing at the old dir. It now runs right
    after make install and repairs any stale extension dir, including ones left
    by an earlier failed run.

    Changes:
    - add php_extension_dir() and use it in the memcached, mongodb, redis,
    swoole, zip, zopfli and Zend OPcache installers
    - mcrypt addons call php-config --extension-dir directly
    - memcache and memcached ini fall back to a bare .so name when the extension
    dir is unknown
    - add php_ini_extdir_rewrite() after make install, and drop the old rewrite
    at the end of autodetectinstallextensions() and PHPEXTDIRDOLD
    - update the ini rewrite checks in tools/test-gcc-toolset15.sh

    Continue reading...

    140.00beta01 branch