Discover Centmin Mod today
Register Now

Beta Branch add PECL imap extension for PHP 8.4+ with PHPIMAP=y in 140.00beta01

Discussion in 'Centmin Mod Github Commits' started by eva2000, Dec 3, 2026 at 1:54 AM.

  1. eva2000

    eva2000 Administrator Staff Member

    60,673
    12,636
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,303
    Local Time:
    12:28 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    add PECL imap extension for PHP 8.4+ with PHPIMAP=y in 140.00beta01

    PHP 8.4 moved imap out of PHP into PECL, so PHPIMAP='y' (the default)
    left PHP 8.4 and newer without the imap extension.
    https://github.com/centminmod/centminmod/issues/174

    Changes:
    - imap.inc phpimap_pecl_install: build PECL imap 1.0.3 for PHP 8.4/8.5,
    and php/pecl-mail-imap commit c441c79a (PHP 8.6 build fix, not yet
    released) for PHP 8.6, against uw-imap-devel with --with-libdir=lib64,
    --with-kerberos and --with-imap-ssl, then check that PHP loads it
    - imap.ini starts with a marker line: menu 5 rewrites or removes only
    that file, never writes or deletes a hand-made imap.ini, and writes
    none when another ini already loads imap
    - a failed build is reported and PHP runs without imap; a rebuild that
    fails before it installs a new imap.so keeps the old one while it
    still loads; menu 5 carries on
    - PHP 8.3 and older keep building imap in: going back to them, or
    PHPIMAP=n, removes the marked imap.ini
    - not built for a thread-safe PHP (PHP_ZTS), as the PHP manual advises;
    menu 5 removes its imap.ini there
    - initial install, and menu 5 on a PHP major version change or a
    missing imap.ini or imap.so, with one build per PHP per run
    - version pins PHPIMAP_PECL_VER and PHPIMAP_PECL_EIGHTSIX_COMMIT, with a
    check-upstream-versions.sh entry; the PHP 8.6 upgrade notice no longer
    lists imap as lost when PHPIMAP=y


    Continue reading...

    140.00beta01 branch