Welcome to Centmin Mod Community
Become a Member

Stable Branch update PHP-FPM routine for PHP 8.3.16+ on CentOS 7 systems in 131.00s…

Discussion in 'Centmin Mod Github Commits' started by eva2000, Feb 16, 2025.

  1. eva2000

    eva2000 Administrator Staff Member

    54,864
    12,239
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,810
    Local Time:
    5:33 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    update PHP-FPM routine for PHP 8.3.16+ on CentOS 7 systems in 131.00stable

    - PHP 8.3.16 introduced code changes for FFI ext/ffi/ffi.c are incompatible with end of life CentOS 7's glibc 2.17 version causing PHP 8.3.16+ PHP-FPM compilations to fail on CentOS 7 (el7) operating systems. AlmaLinux or Rocky Linux el8 and el9 systems are okay as they use newer glibc versions.
    - This update applies a workaround patch to allow PHP 8.3.16+ to compile properly on EOL CentOS 7 systems as PHP has stated they will not update PHP to work with now end of life CentOS 7 systems
    - existing users can run cmupdate command before running centmin.sh menu option 5 to compile/update PHP 8.3.16+

    example error message:

    php-8.3.16/ext/ffi/ffi.c:5047:45: error: macro "strncmp" requires 3 arguments, but only 2 given
    if (strncmp(code_pos, ZEND_STRL("#define")) == 0) {


    Continue reading...

    132.00stable branch