Discover Centmin Mod today
Register Now

Beta Branch fix mailparse version selection for PHP 7.0-7.3 upgrades in 140.00beta01

Discussion in 'Centmin Mod Github Commits' started by eva2000, Oct 22, 2026 at 3:42 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 mailparse version selection for PHP 7.0-7.3 upgrades in 140.00beta01

    The mailparse PHP extension version was chosen from PHPMVER, which follows the default PHP_VERSION in centmin.sh rather than the PHP being built. A centmin.sh menu option 5 upgrade or downgrade to PHP 7.0-7.3 on a branch with a 7.4+ default therefore downloaded the PHP 7.4+ mailparse release, which needs PHP 7.3 or newer, instead of MAILPARSEPHP_COMPATVER. Pick the version from the PHP actually being built: the installed php-config on upgrades, PHP_VERSION on initial installs.


    Changes:
    - inc/mailparse.inc: checkphpextmailparse() and mailparseinstall() keep the detected PHP major.minor in MAILPARSE_PHPVER and use MAILPARSEPHP_COMPATVER for PHP 7.0-7.3, MAILPARSEPHPSEVENFOUR_COMPATVER otherwise
    - inc/downloads.inc: same change in mailparsephpexttarball()

    Continue reading...

    140.00beta01 branch