Join the community today
Register Now

PHP PHP 7.4.0 is already available

Discussion in 'Nginx and PHP-FPM news & discussions' started by rdan, Nov 27, 2019.

  1. rdan

    rdan Well-Known Member

    4,958
    1,181
    113
    May 25, 2014
    Ratings:
    +1,793
    Local Time:
    12:34 PM
    Mainline
    10.2
  2. pamamolf

    pamamolf Premium Member Premium Member

    3,813
    369
    83
    May 31, 2014
    Ratings:
    +711
    Local Time:
    7:34 AM
    Nginx-1.17.x
    MariaDB 10.3.x
  3. eva2000

    eva2000 Administrator Staff Member

    44,631
    10,187
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,783
    Local Time:
    2:34 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
  4. eva2000

    eva2000 Administrator Staff Member

    44,631
    10,187
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,783
    Local Time:
    2:34 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
  5. rdan

    rdan Well-Known Member

    4,958
    1,181
    113
    May 25, 2014
    Ratings:
    +1,793
    Local Time:
    12:34 PM
    Mainline
    10.2
    Updating now :)

    upload_2019-11-27_22-30-22.png
     
  6. rdan

    rdan Well-Known Member

    4,958
    1,181
    113
    May 25, 2014
    Ratings:
    +1,793
    Local Time:
    12:34 PM
    Mainline
    10.2
    GD and ZipArchive support isn't installed though.
     
  7. eva2000

    eva2000 Administrator Staff Member

    44,631
    10,187
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,783
    Local Time:
    2:34 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    ooh have to look into that :)
     
  8. eva2000

    eva2000 Administrator Staff Member

    44,631
    10,187
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,783
    Local Time:
    2:34 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    part 7 update fix https://community.centminmod.com/th...-4-0-ga-stable-release-in-123-09beta01.18737/

    @rdan fixed GD and ZIP extensions now
    Code (Text):
    php --ri zip
    zip
    Zip => enabled
    Zip version => 1.15.5
    Libzip headers version => 1.5.2
    Libzip library version => 1.5.2
    

    Code (Text):
    php --ri gd
    gd
    GD Support => enabled
    GD Version => bundled (2.1.0 compatible)
    FreeType Support => enabled
    FreeType Linkage => with freetype
    FreeType Version => 2.8.0
    GIF Read Support => enabled
    GIF Create Support => enabled
    JPEG Support => enabled
    libJPEG Version => 6b
    PNG Support => enabled
    libPNG Version => 1.5.13
    WBMP Support => enabled
    XPM Support => enabled
    libXpm Version => 30411
    XBM Support => enabled
    WebP Support => enabled
    BMP Support => enabled
    TGA Read Support => enabled
    Directive => Local Value => Master Value
    gd.jpeg_ignore_warning => 1 => 1
    

    Code (Text):
    php -m
    [PHP Modules]
    bcmath
    bz2
    calendar
    Core
    ctype
    curl
    date
    dom
    enchant
    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
    readline
    redis
    Reflection
    session
    shmop
    SimpleXML
    snmp
    soap
    sockets
    sodium
    SPL
    sqlite3
    standard
    sysvmsg
    sysvsem
    sysvshm
    tidy
    timezonedb
    tokenizer
    xml
    xmlreader
    xmlrpc
    xmlwriter
    xsl
    Zend OPcache
    zip
    zlib
    [Zend Modules]
    Zend OPcache
    
    
     
  9. Jon Snow

    Jon Snow Active Member

    521
    72
    28
    Jun 30, 2017
    Ratings:
    +114
    Local Time:
    1:34 AM
    Nginx 1.13.9
    MariaDB 10.1.31
    @rdan Noticed any improved performance?
     
  10. eva2000

    eva2000 Administrator Staff Member

    44,631
    10,187
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,783
    Local Time:
    2:34 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
  11. rdan

    rdan Well-Known Member

    4,958
    1,181
    113
    May 25, 2014
    Ratings:
    +1,793
    Local Time:
    12:34 PM
    Mainline
    10.2
    Just by observing it manually, not so much noticeable improvement.
    Maybe a proper benchmark can tell.
     
  12. rdan

    rdan Well-Known Member

    4,958
    1,181
    113
    May 25, 2014
    Ratings:
    +1,793
    Local Time:
    12:34 PM
    Mainline
    10.2
  13. eva2000

    eva2000 Administrator Staff Member

    44,631
    10,187
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,783
    Local Time:
    2:34 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
  14. Sunka

    Sunka Well-Known Member

    1,140
    312
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +508
    Local Time:
    6:34 AM
    Nginx 1.17.9
    MariaDB 10.3.22
    Upgraded. Seems fine for now.
    No errors in Xenforo ACP.
     
  15. Andy

    Andy Active Member

    461
    73
    28
    Aug 6, 2014
    Ratings:
    +102
    Local Time:
    12:34 AM
    Anyone know if centmin 7.4 has php74-zlib?
     
  16. tininho

    tininho Premium Member Premium Member

    99
    25
    18
    May 22, 2019
    Nordic
    Ratings:
    +67
    Local Time:
    7:34 AM
    Yeah, I am wondering the same, kinda. Is it better to use PHP_LIBZIP='y' or CLOUDFLARE_ZLIBPHP='y' with PHP 7.4?
     
    Last edited: Dec 7, 2019
  17. eva2000

    eva2000 Administrator Staff Member

    44,631
    10,187
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,783
    Local Time:
    2:34 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    you can check what zlib version is installed or whether it is installed via these 2 commands
    Code (Text):
    php-config
    php --ri zip
    php --ri zlib
    

    examples
    Code (Text):
    php --ri zip
    
    zip
    
    Zip => enabled
    Zip version => 1.15.5
    Libzip headers version => 1.5.2
    Libzip library version => 1.5.2

    Code (Text):
    php --ri zlib
    
    zlib
    
    ZLib Support => enabled
    Stream Wrapper => compress.zlib://
    Stream Filter => zlib.inflate, zlib.deflate
    Compiled Version => 1.2.7
    Linked Version => 1.2.7
    
    Directive => Local Value => Master Value
    zlib.output_compression => Off => Off
    zlib.output_compression_level => -1 => -1
    zlib.output_handler => no value => no value

    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 -largon2 -lresolv -lcrypt -lncurses -laspell -lpspell -lrt -lldap -llber -lstdc++ -lcrypt -lpam -lgmp -lbz2 -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 -lcrypt -largon2 -lxml2 -lxml2 -lxml2 -lxml2 -lxslt -lm -lxml2 -lexslt -lxslt -lm -lgcrypt -ldl -lgpg-error -lxml2 -lzip -lssl -lcrypto -lcrypt ]
      --extension-dir     [/usr/local/lib/php/extensions/no-debug-non-zts-20190902]
      --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=/usr/local --with-sodium=/usr/local --with-config-file-scan-dir=/etc/centminmod/php.d --with-fpm-systemd --with-ffi --with-xsl LIBSODIUM_CFLAGS=-I/usr/local/include LIBSODIUM_LIBS=-L/usr/local/lib64 -lsodium LIBZIP_CFLAGS=-I/usr/local/include LIBZIP_LIBS=-L/usr/local/lib64 -lzip]
      --version           [7.4.0]
      --vernum            [70400]
    

    Also test php file to check
    PHP:
    <?php
    $compressed   
    gzdeflate('Compress me'9);
    $uncompressed gzinflate($compressed);
    echo 
    $uncompressed;
    ?>
     
    Last edited: Dec 7, 2019
  18. eva2000

    eva2000 Administrator Staff Member

    44,631
    10,187
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,783
    Local Time:
    2:34 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    PHP 7.3 and 7.4 automatically enable PHP_LIBZIP - you shouldn't use CLOUDFLARE_ZLIBPHP it's experimental and disabled by default for a reason - testing only :)
     
  19. pamamolf

    pamamolf Premium Member Premium Member

    3,813
    369
    83
    May 31, 2014
    Ratings:
    +711
    Local Time:
    7:34 AM
    Nginx-1.17.x
    MariaDB 10.3.x
    But we can use safely the CLOUDFLARE_ZLIB='y' ?
     
  20. eva2000

    eva2000 Administrator Staff Member

    44,631
    10,187
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,783
    Local Time:
    2:34 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    yes for Nginx CF Zlib fine it's PHP CF Zlib that may not work as intended.