Welcome to Centmin Mod Community
Register Now

PHP PHP 7.4 End Of Life November 2022

Discussion in 'Nginx and PHP-FPM news & discussions' started by eva2000, Nov 30, 2022.

Thread Status:
Not open for further replies.
  1. eva2000

    eva2000 Administrator Staff Member

    50,869
    11,784
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,237
    Local Time:
    10:30 AM
    Nginx 1.25.x
    MariaDB 10.x
    PHP 7.4 branch is now end of life (EOL) from upstream php.net folks from November 28, 2022 onwards. PHP 7.4.33 is currently the last PHP 7.4 branch version released. No more bug fix or security updates according to
    So ideally, you should upgrade to latest PHP 8.0.x = 8.0.26+ or PHP 8.1.x = 8.1.13 versions if your PHP web apps and/or plugin/addons support those versions. Though PHP 8.0 active support ended in November 2022 too and only has security support until November 26, 2023 next year. So only PHP 8.1 has active + security support right now until November 25, 2023 and November 25, 2024 respectively.

    You can find latest PHP version listed on php.net web site or via Centmin Mod command shortcut which works after first time you run centmin.sh menu option 5 = getphpver
    Code (Text):
    getphpver
    8.1.13
    8.0.26
    7.4.33
    7.3.33
    7.2.34
    7.1.33
    7.0.33
    5.6.40
    5.5.38
    

    Or pass the major version number to command to only get that latest PHP version. PHP 8.2 hasn't been added yet as it's still in RC status and not GA (General Availability stable release yet).
    Code (Text):
    getphpver 80
    8.0.26
    
    getphpver 81
    8.1.13
    



    Centmin Mod Latest Supported PHP versions


    • Centmin Mod should still work with PHP 7.1, 7.2, 7.3. and 7.4 and I do backport security updates to them if they're available. However, ideally, you want to update to PHP 8.0.x or 8.1.x branch.
    • Centmin Mod 124.00stable currently supports PHP 8.0 and 8.1 fine.
    • Centmin Mod 130.00beta01 supports PHP 8.0 and PHP 8.1 as well as experimental PHP 8.2 RC (release candidate) support. So if you want to test PHP 8.2 RC releases currently at PHP 8.2.0 RC7 release, you can run centmin.sh menu option 5 and specify PHP version = 8.2.0RC7 and it will compile though not all PHP extensions maybe compatible right now. PHP 8.2.0 GA release is due on December 8, 2022 so only 9 days away really!
    • Centmin Mod backports major security fixes and patches to previous EOL PHP 5.6, 7.0, 7.1, 7.2, 7.3 and 7.4 branches were possible. The backported PHP security fix patches are first tested on Centmin Mod 130.00beta01 before eventually landing in Centmin Mod 124.00stable branches.
    Though the current Centmin Mod 130.00beta01 test with PHP 8.2.0RC7 seems to compile fine
    Code (Text):
    php -v
    PHP 8.2.0RC7 (cli) (built: Nov 29 2022 14:24:34) (NTS)
    Copyright (c) The PHP Group
    Zend Engine v4.2.0RC7, Copyright (c) Zend Technologies
        with Zend OPcache v8.2.0RC7, Copyright (c), by Zend Technologies
    
    

    Code (Text):
    php -r 'print_r(get_defined_constants());' | grep -i argon
        [PASSWORD_ARGON2I] => argon2i
        [PASSWORD_ARGON2ID] => argon2id
        [PASSWORD_ARGON2_DEFAULT_MEMORY_COST] => 65536
        [PASSWORD_ARGON2_DEFAULT_TIME_COST] => 4
        [PASSWORD_ARGON2_DEFAULT_THREADS] => 1
        [PASSWORD_ARGON2_PROVIDER] => standard
        [SODIUM_CRYPTO_PWHASH_ALG_ARGON2I13] => 1
        [SODIUM_CRYPTO_PWHASH_ALG_ARGON2ID13] => 2
        [SODIUM_CRYPTO_PWHASH_STRPREFIX] => $argon2id$
    

    Code (Text):
    php -m
    [PHP Modules]
    bcmath
    brotli
    bz2
    calendar
    Core
    ctype
    curl
    date
    dom
    enchant
    event
    exif
    FFI
    fileinfo
    filter
    ftp
    gd
    geoip
    gettext
    gmp
    hash
    iconv
    igbinary
    imagick
    imap
    intl
    json
    ldap
    libxml
    mailparse
    maxminddb
    mbstring
    mcrypt
    memcache
    memcached
    mysqli
    mysqlnd
    openssl
    pcntl
    pcre
    PDO
    pdo_mysql
    pdo_sqlite
    Phar
    posix
    pspell
    random
    readline
    redis
    Reflection
    session
    shmop
    SimpleXML
    snmp
    soap
    sockets
    sodium
    SPL
    sqlite3
    standard
    sysvmsg
    sysvsem
    sysvshm
    tidy
    timezonedb
    tokenizer
    xml
    xmlreader
    xmlwriter
    Zend OPcache
    zip
    zlib
    
    [Zend Modules]
    Zend OPcache
    

    Code (Text):
    php-config
    Usage: /usr/local/bin/php-config [OPTION]
    Options:
      --prefix            [/usr/local]
      --includes          [-I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib]
      --ldflags           [ -L/usr/local/lib64]
      --libs              [-lcrypt  -lc-client  -ltidy -lresolv -lncurses -laspell -lpspell -lrt -lldap -llber -lstdc++ -lcrypt -lpam -lgmp -lbz2 -lutil -lrt -lm -ldl  -lsystemd -lxml2 -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lssl -lcrypto -lsqlite3 -lz -lcurl -lxml2 -lenchant -lgmodule-2.0 -lglib-2.0 -lffi -lssl -lcrypto -lz -lpng15 -lwebp -ljpeg -lXpm -lX11 -lfreetype -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lssl -lcrypto -licuio -licui18n -licuuc -licudata -lonig -lsqlite3 -ledit -ltinfo -lxml2 -lnetsnmp -lssl -lssl -lcrypto -lm -lxml2 -lsodium -largon2 -lxml2 -lxml2 -lxml2 -lzip -lz -lssl -lcrypto -lcrypt ]
      --extension-dir     [/usr/local/lib/php/extensions/no-debug-non-zts-20220829]
      --include-dir       [/usr/local/include/php]
      --man-dir           [/usr/local/php/man]
      --php-binary        [/usr/local/bin/php]
      --php-sapis         [ cli embed fpm phpdbg cgi]
      --ini-path          [/usr/local/lib]
      --ini-dir           [/etc/centminmod/php.d]
      --configure-options [--enable-fpm --enable-opcache --enable-intl --enable-pcntl --with-mcrypt --with-snmp --enable-embed=shared --with-mhash --with-zlib --with-gettext --enable-exif --with-zip --with-libzip --with-bz2 --enable-soap --enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm --with-mysql-sock=/var/lib/mysql/mysql.sock --with-curl --enable-gd --with-xmlrpc --enable-bcmath --enable-calendar --enable-ftp --enable-gd-native-ttf --with-freetype --with-jpeg --with-png-dir=/usr --with-xpm --with-webp --with-t1lib=/usr --enable-shmop --with-pear --enable-mbstring --with-openssl --with-mysql=mysqlnd --with-libdir=lib64 --with-mysqli=mysqlnd --enable-pdo --with-pdo-sqlite --with-pdo-mysql=mysqlnd --enable-inline-optimization --with-imap --with-imap-ssl --with-kerberos --with-readline --with-libedit --with-gmp --with-pspell --with-tidy --with-enchant --with-fpm-user=nginx --with-fpm-group=nginx --with-ldap --with-ldap-sasl --with-password-argon2 --with-sodium=/usr/local --with-config-file-scan-dir=/etc/centminmod/php.d --with-fpm-systemd --with-ffi --with-webp-dir=/usr PKG_CONFIG_PATH=/opt/rh/devtoolset-11/root/usr/lib64/pkgconfig:/opt/rh/devtoolset-11/root/usr/lib64/pkgconfig ICU_CFLAGS=-I/usr/include ICU_LIBS=-L/usr/lib64 -licuio -licui18n -licuuc -licudata LIBSODIUM_CFLAGS=-I/usr/local/include LIBSODIUM_LIBS=-L/usr/local/lib64 -lsodium ARGON2_CFLAGS=-I/usr/local/include ARGON2_LIBS=-L/usr/local/lib64 -largon2 LIBZIP_CFLAGS=-I/usr/local/include LIBZIP_LIBS=-L/usr/local/lib64 -lzip]
      --version           [8.2.0RC7]
      --vernum            [80200]
    
     
Thread Status:
Not open for further replies.