Join the community today
Become a Member

PHP PHP 7.2.0 Alpha2

Discussion in 'Nginx and PHP-FPM news & discussions' started by eva2000, Jun 25, 2017.

  1. eva2000

    eva2000 Administrator Staff Member

    30,178
    6,786
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,139
    Local Time:
    10:37 AM
    Nginx 1.13.x
    MariaDB 5.5
    PHP 7.2.0 Alpha2 is released. Centmin Mod 123.09beta01 has premlim support for PHP 7.2.0 Alpha2 when you run centmin.sh menu option 5 and specify PHP version = 7.2.0alpha2.

    php-src/NEWS at php-7.2.0alpha2 · php/php-src · GitHub
    Code (Text):
    22 Jun 2017, PHP 7.2.0alpha2
    
    - Core:
      . Change PHP_OS_FAMILY value from "OSX" to "Darwin". (sb, kalle)
    
    - GD:
      . Fixed bug #74744 (gd.h: stdarg.h include missing for va_list use in
        gdErrorMethod). (rainer dot jung at kippdata dot de, cmb)
    
    - OCI8:
      . Add TAF callback (PR #2459). (KoenigsKind)
    
    - OpenSSL:
      . Fixed bug #74720 (pkcs7_en/decrypt does not work if \x1a is used in
        content). (Anatol)
      . Use TLS_ANY for default ssl:// and tls:// negotiation.
        (Niklas Keller, me at kelunik dot com)
      . Fix leak in openssl_spki_new(). (jelle at vdwaa dot nl)
    
    - PDO_OCI:
      . Fixed Bug #74537 (Align --with-pdo-oci configure option with --with-oci8 syntax).
        (Tianfang Yang)
      . Support Instant Client 12.2 in --with-pdo-oci configure option.
        (Tianfang Yang)
    
    - Standard:
      . Compatibility with libargon2 versions 20161029 and 20160821.
        (charlesportwoodii at erianna dot com)
      . Fixed Bug #74737 (mysqli_get_client_info reflection info).
        (mhagstrand at gmail dot com)
    
    - Streams:
      . Default ssl/single_dh_use and ssl/honor_cipher_order to true.
        (me at kelunik dot com)
    
    - SQLite3:
      . Update to Sqlite 3.19.3. (cmb)
      . Implement writing to blobs. (bohwaz at github dot com)
     
  2. eva2000

    eva2000 Administrator Staff Member

    30,178
    6,786
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,139
    Local Time:
    10:37 AM
    Nginx 1.13.x
    MariaDB 5.5
    Centmin Mod 123.09beta01 is being tested with multiple PHP-FPM versions via Remi SCL Yum Repository.

    Centmin Mod 123.09beta01 native PHP-FPM 7.2.0 Alpha2. Looks like 123.09beta01's upgrade routines for PHP 7.2.0 Alpha2 didn't properly detect PHP 7.2 version for memcache, memcached and mailparse extensions and needed updating and then centmin.sh menu option 13, sub menu option 2 and centmin.sh menu option 10 runs to recompile then when upgrading from PHP 7.2.0 Alpha1. Made a few updates for better PHP-FPM 7.2.0 compatibility with some php extension modules.

    Code (Text):
    php -v
    PHP 7.2.0alpha2 (cli) (built: Jun 24 2017 20:43:46) ( NTS )
    Copyright (c) 1997-2017 The PHP Group
    Zend Engine v3.2.0-dev, Copyright (c) 1998-2017 Zend Technologies
        with Zend OPcache v7.2.0alpha2, Copyright (c) 1999-2017, by Zend Technologies
    

    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           []
      --libs              [-lcrypt  -lc-client  -lz -lexslt -ltidy -lresolv -lcrypt -ledit -lncurses -laspell -lpspell -lrt -lldap -llber -lstdc++ -lcrypt -lpam -lgmp -lX11 -lXpm -lpng -lz -ljpeg -lwebp -lenchant -lcurl -lbz2 -lz -lrt -lm -ldl -lnsl  -lxml2 -lz -llzma -lm -ldl -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lssl -lcrypto -lcurl -lxml2 -lz -llzma -lm -ldl -lssl -lcrypto -lfreetype -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lssl -lcrypto -ldl -lm -licui18n -licuuc -licudata -ldl -lm -licuio -lxml2 -lz -llzma -lm -ldl -lnetsnmp -lssl -lssl -lcrypto -lm -lxml2 -lz -llzma -lm -ldl -lcrypt -lxml2 -lz -llzma -lm -ldl -lxml2 -lz -llzma -lm -ldl -lxml2 -lz -llzma -lm -ldl -lxml2 -lz -llzma -lm -ldl -lxslt -lxml2 -lz -llzma -ldl -lm -lssl -lcrypto -lcrypt ]
      --extension-dir     [/usr/local/lib/php/extensions/no-debug-non-zts-20160731]
      --include-dir       [/usr/local/include/php]
      --man-dir           [/usr/local/php/man]
      --php-binary        [/usr/local/bin/php]
      --php-sapis         [ cli fpm phpdbg cgi]
      --configure-options [--enable-fpm --enable-opcache --enable-intl --enable-pcntl --with-mcrypt --with-snmp --with-mhash --with-zlib --with-gettext --enable-exif --enable-zip --with-bz2 --enable-soap --enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-shmop --with-pear --enable-mbstring --with-openssl --with-mysql=mysqlnd --with-libdir=lib64 --with-mysqli=mysqlnd --with-mysql-sock=/var/lib/mysql/mysql.sock --with-curl --with-gd --with-xmlrpc --enable-bcmath --enable-calendar --enable-ftp --enable-gd-native-ttf --with-freetype-dir=/usr --with-jpeg-dir=/usr --with-png-dir=/usr --with-xpm-dir=/usr --with-webp-dir=/usr --with-t1lib=/usr --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 --disable-fileinfo --with-ldap --with-ldap-sasl --enable-huge-code-pages --with-config-file-scan-dir=/etc/centminmod/php.d --with-xsl]
      --version           [7.2.0alpha2]
      --vernum            [70200]
    

    Code (Text):
    php -m
    [PHP Modules]
    bcmath
    bz2
    calendar
    Core
    ctype
    curl
    date
    dom
    enchant
    exif
    filter
    ftp
    gd
    geoip
    gettext
    gmp
    hash
    iconv
    igbinary
    imagick
    imap
    intl
    json
    ldap
    libxml
    mailparse
    mbstring
    memcache
    memcached
    mysqli
    mysqlnd
    openssl
    pcntl
    pcre
    PDO
    pdo_mysql
    pdo_sqlite
    Phar
    posix
    pspell
    readline
    redis
    Reflection
    session
    shmop
    SimpleXML
    snmp
    soap
    sockets
    SPL
    sqlite3
    standard
    sysvmsg
    sysvsem
    sysvshm
    tidy
    tokenizer
    xml
    xmlreader
    xmlrpc
    xmlwriter
    xsl
    Zend OPcache
    zip
    zlib
    
    [Zend Modules]
    Zend OPcache
    
     
    Last edited: Jun 25, 2017
    • Like Like x 1
  3. eva2000

    eva2000 Administrator Staff Member

    30,178
    6,786
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,139
    Local Time:
    10:37 AM
    Nginx 1.13.x
    MariaDB 5.5
    Remi SCL Yum PHP-FPM 7.2.0 Alpha2
    Code (Text):
    php72 -v
    PHP 7.2.0alpha2 (cli) (built: Jun 21 2017 06:56:14) ( NTS )
    Copyright (c) 1997-2017 The PHP Group
    Zend Engine v3.2.0-dev, Copyright (c) 1998-2017 Zend Technologies
        with Zend OPcache v7.2.0alpha2, Copyright (c) 1999-2017, by Zend Technologies
    

    Code (Text):
    ./php72.sh phpconfig
    Usage: /opt/remi/php72/root/usr/bin/php-config [OPTION]
    Options:
      --prefix            [/opt/remi/php72/root/usr]
      --includes          [-I/opt/remi/php72/root/usr/include/php -I/opt/remi/php72/root/usr/include/php/main -I/opt/remi/php72/root/usr/include/php/TSRM -I/opt/remi/php72/root/usr/include/php/Zend -I/opt/remi/php72/root/usr/include/php/ext -I/opt/remi/php72/root/usr/include/php/ext/date/lib]
      --ldflags           []
      --libs              [-lcrypt   -lresolv -lcrypt -ledit -lncurses -lstdc++ -lz -lrt -lm -ldl -lnsl  -lxml2 -lz -lm -ldl -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lssl -lcrypto -lcrypt -lcrypt ]
      --extension-dir     [/opt/remi/php72/root/usr/lib64/php/modules]
      --include-dir       [/opt/remi/php72/root/usr/include/php]
      --man-dir           [/opt/remi/php72/root/usr/share/man]
      --php-binary        [/opt/remi/php72/root/usr/bin/php]
      --php-sapis         [apache2handler embed fpm  cli phpdbg cgi]
      --configure-options [--build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/opt/remi/php72/root/usr --exec-prefix=/opt/remi/php72/root/usr --bindir=/opt/remi/php72/root/usr/bin --sbindir=/opt/remi/php72/root/usr/sbin --sysconfdir=/etc/opt/remi/php72 --datadir=/opt/remi/php72/root/usr/share --includedir=/opt/remi/php72/root/usr/include --libdir=/opt/remi/php72/root/usr/lib64 --libexecdir=/opt/remi/php72/root/usr/libexec --localstatedir=/var/opt/remi/php72 --sharedstatedir=/var/opt/remi/php72/lib --mandir=/opt/remi/php72/root/usr/share/man --infodir=/opt/remi/php72/root/usr/share/info --cache-file=../config.cache --with-libdir=lib64 --with-config-file-path=/etc/opt/remi/php72 --with-config-file-scan-dir=/etc/opt/remi/php72/php.d --disable-debug --with-pic --disable-rpath --without-pear --with-exec-dir=/opt/remi/php72/root/usr/bin --with-freetype-dir=/usr --with-png-dir=/usr --with-xpm-dir=/usr --without-gdbm --with-jpeg-dir=/usr --with-openssl --with-system-ciphers --with-zlib --with-layout=GNU --with-kerberos --with-libxml-dir=/usr --with-system-tzdata --with-mhash --enable-dtrace --libdir=/opt/remi/php72/root/usr/lib64/php --enable-pcntl --enable-opcache --enable-opcache-file --enable-phpdbg --with-imap=shared --with-imap-ssl --enable-mbstring=shared --enable-mbregex --with-gd=shared,/usr --with-gmp=shared --enable-calendar=shared --enable-bcmath=shared --with-bz2=shared --enable-ctype=shared --enable-dba=shared --with-db4=/usr --with-tcadb=/usr --with-lmdb=/usr --enable-exif=shared --enable-ftp=shared --with-gettext=shared --with-iconv=shared --enable-sockets=shared --enable-tokenizer=shared --with-xmlrpc=shared --with-ldap=shared --with-ldap-sasl --enable-mysqlnd=shared --with-mysqli=shared,mysqlnd --with-mysql-sock=/var/lib/mysql/mysql.sock --with-oci8=shared,instantclient,/usr/lib64/oracle/12.2/client64/lib,12.2 --with-pdo-oci=shared,instantclient,/usr/lib64/oracle/12.2/client64/lib,12.2 --with-interbase=shared --with-pdo-firebird=shared --enable-dom=shared --with-pgsql=shared --enable-simplexml=shared --enable-xml=shared --enable-wddx=shared --with-snmp=shared,/usr --enable-soap=shared --with-xsl=shared,/usr --enable-xmlreader=shared --enable-xmlwriter=shared --with-curl=shared,/usr --enable-pdo=shared --with-pdo-odbc=shared,unixODBC,/usr --with-pdo-mysql=shared,mysqlnd --with-pdo-pgsql=shared,/usr --with-pdo-sqlite=shared,/usr --with-sqlite3=shared,/usr --enable-json=shared --without-readline --with-libedit --with-pspell=shared --enable-phar=shared --with-tidy=shared,/usr --with-pdo-dblib=shared,/usr --enable-sysvmsg=shared --enable-sysvshm=shared --enable-sysvsem=shared --enable-shmop=shared --enable-posix=shared --with-unixODBC=shared,/usr --enable-intl=shared --with-icu-dir=/usr --with-enchant=shared,/usr --with-recode=shared,/usr --enable-fileinfo=shared build_alias=x86_64-redhat-linux-gnu host_alias=x86_64-redhat-linux-gnu CFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -fno-strict-aliasing -Wno-pointer-sign CXXFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic]
      --version           [7.2.0alpha2]
      --vernum            [70200]
    

    Code (Text):
    php72 -m
    [PHP Modules]
    bcmath
    bz2
    calendar
    Core
    ctype
    curl
    date
    dom
    enchant
    exif
    fileinfo
    filter
    ftp
    gd
    gettext
    gmp
    hash
    iconv
    igbinary
    imagick
    imap
    intl
    json
    ldap
    libxml
    mbstring
    mcrypt
    mysql
    mysqli
    mysqlnd
    openssl
    pcntl
    pcre
    PDO
    pdo_dblib
    pdo_mysql
    pdo_sqlite
    Phar
    pspell
    readline
    redis
    Reflection
    session
    SimpleXML
    snmp
    soap
    sockets
    SPL
    sqlite3
    standard
    tidy
    tokenizer
    wddx
    xml
    xmlreader
    xmlrpc
    xmlwriter
    xsl
    Zend OPcache
    zip
    zlib
    
    [Zend Modules]
    Zend OPcache
    
     
  4. eva2000

    eva2000 Administrator Staff Member

    30,178
    6,786
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,139
    Local Time:
    10:37 AM
    Nginx 1.13.x
    MariaDB 5.5
    PHP-FPM benchmarks for PHP-FPM 7.2.0 Alpha2 vs 7.1.6 vs 7.0.20 vs 5.6.30. Looks like there are improvements in 7.2.0 alpha 2 compared to alpha 1 for both Centmin Mod source installed PHP-FPM version as well as in Remi SCL Yum installed PHP-FPM 7.2.0 alpha 2.

    System:
    • OVH MC-32 Intel Core i7 4790K
    • 32GB Memory
    • 2x240GB SSD
    • 250Mbit Network Bandwidth
    • CentOS 7.3 64bit
    • Centmin Mod 123.09beta01 LEMP stack - Nginx 1.13.1, MariaDB 10.1.24 MySQL, + CSF Firewall
    • BHS, Canada
    PGO = Profile Guided Optimisations

    PHP Version bench.php micro_bench.php detailed_benchmark.php
    PHP 7.2.0alpha2 centminmod php-fpm + PGO 0.3947 2.0503 1.7457
    PHP 7.2.0alpha2 centminmod php-fpm + No PGO 0.3973 2.1437 1.7540
    PHP 7.2.0alpha1 centminmod php-fpm + PGO 0.3852 2.1047 1.7820
    PHP 7.2.0alpha1 centminmod php-fpm + No PGO 0.3888 2.2572 1.7793
    PHP 7.1.6 centminmod php-fpm + No PGO 0.4069 2.2363 1.9149
    PHP 7.1.6 centminmod php-fpm + PGO 0.4135 2.2365 1.9436
    PHP 7.2.0alpha2 remi scl php-fpm 0.3920 2.1953 1.9090
    PHP 7.2.0alpha1 remi scl php-fpm 0.3942 2.2707 1.9384
    PHP 7.1.6 remi scl php-fpm 0.4113 2.3370 2.0943
    PHP 7.0.20 remi scl php-fpm 0.4323 2.2987 2.1167
    PHP 5.6.30 remi scl php-fpm 1.2130 5.8380 4.1733
     
    Last edited: Jun 27, 2017
    • Informative Informative x 1
  5. eva2000

    eva2000 Administrator Staff Member

    30,178
    6,786
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,139
    Local Time:
    10:37 AM
    Nginx 1.13.x
    MariaDB 5.5
    PHP 7.2.0 Alpha3 is out and download link changed, so update 123.09beta01 via centmin.sh menu option 23 submenu option 2 before running centmin.sh menu option 5 PHP - PHP 7.2.0 Alpha3