Discover Centmin Mod today
Register Now

Stable Branch fix mongodb and swoole version selection for PHP upgrades in 132.00st…

Discussion in 'Centmin Mod Github Commits' started by eva2000, Oct 22, 2026 at 4:44 AM.

  1. eva2000

    eva2000 Administrator Staff Member

    60,036
    12,571
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,224
    Local Time:
    5:12 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    fix mongodb and swoole version selection for PHP upgrades in 132.00stable

    The mongodb and swoole PHP extension versions were chosen with PHPMVER, the default PHP_VERSION (7.4), tested alongside the target version. A centmin.sh menu option 5 build of PHP 8.0-8.3 got the PHP 7 release mongodb 1.11.1, and a build of PHP 5.5/5.6, 7.0 or 7.1 got swoole 5.1.1 instead of the release for that PHP version. mongodbphptarball() also lacked the PHP 8.2+ branch of checkmongodbtar(), and because the tarball download sets the version again, PHP 8.2 and 8.3 builds ended up with mongodb 1.13.0. Use the PHP version being built, PHPMUVER on upgrades and PHPMVER on initial installs.

    Changes:
    - inc/mongodb.inc: checkmongodbtar() picks MONGODBPHP_VER from mongodb_phpver (PHPMUVER when set, else PHPMVER)
    - inc/downloads.inc: mongodbphplocaltarball() and mongodbphptarball() use the same mongodb_phpver chain as checkmongodbtar()
    - inc/swoole.inc: checkswooletar() and swooleinstall() pick PHPSWOOLE_VER from swoole_phpver
    - inc/downloads.inc: swoolephplocaltarball() and swoolephptarball() pick PHPSWOOLE_VER from swoole_phpver

    Continue reading...


    132.00stable branch