Want more timely Centmin Mod News Updates?
Become a Member

Beta Branch update PHP-FPM routine for PHP 8.3.16+ on CentOS 7 systems in 140.00beta01

Discussion in 'Centmin Mod Github Commits' started by eva2000, Jan 20, 2025.

  1. eva2000

    eva2000 Administrator Staff Member

    58,893
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    4:14 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    update PHP-FPM routine for PHP 8.3.16+ on CentOS 7 systems in 140.00beta01

    - 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:

    Code (Text):
    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...

    140.00beta01 branch