Want more timely Centmin Mod News Updates?
Become a Member

Beta Branch fix mongodb version selection for PHP upgrades in 140.00beta01

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:10 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    fix mongodb version selection for PHP upgrades in 140.00beta01

    The mongodb PHP extension version was chosen with PHPMVER, the default PHP_VERSION (7.4), tested alongside the target version, so a centmin.sh menu option 5 build of PHP 8.0-8.3 got the PHP 7 release mongodb 1.11.1. mongodbphptarball() and mongodbphplocaltarball() also used shorter chains than 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, as 141.00beta01 already does, and give all three functions the same chain.

    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()

    Continue reading...

    140.00beta01 branch