Learn about Centmin Mod LEMP Stack today
Register Now

PHP PHP 7.1.0 Alpha 1

Discussion in 'Nginx and PHP-FPM news & discussions' started by Revenge, Jun 11, 2016.

  1. Revenge

    Revenge Active Member

    287
    64
    28
    Feb 21, 2016
    Portugal
    Ratings:
    +227
    Local Time:
    10:51 AM
    1.9.x
    10.1.x
    [​IMG]
     
  2. Ahmad

    Ahmad Active Member

    209
    80
    28
    Apr 13, 2015
    Ratings:
    +150
    Local Time:
    11:51 AM
    1.9.9
    10.1.10
    They FINALLY added multi catch!!!
    Too bad I cannot use it until php 7.0.x becomes deprecated...
    But at least for my own projects in a year or so, I guess :)
     
    • Like Like x 1
  3. eva2000

    eva2000 Administrator Staff Member

    29,720
    6,711
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,015
    Local Time:
    7:51 PM
    Nginx 1.13.x
    MariaDB 5.5
    For those itching to do testing in non-production test server environments Beta Branch - add PHP 7.1.0 Alpha snapshot support for 123.09beta01 | Centmin Mod Community ;) :D

    Of course not all PHP extensions support is added yet in Centmin Mod detection for 7.1 php versions yet so you may need to reinstall PHP extensions that report unable to load *.so via centmin.sh menu options. None working PHP extensions include
    • imagick - works with latest 123.09beta01 code and imagick 3.4.3RC1 php extension
    • igbinary
    • redis
    • mailparse
    memcache and memcached php extensions work via centmin.sh menu option 10

    errors
    Code (Text):
    Starting php-fpm [11-Jun-2016 15:24:25] NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20160303/igbinary.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20160303/igbinary.so: cannot open shared object file: No such file or directory in Unknown on line 0
    [11-Jun-2016 15:24:25] NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20160303/imagick.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20160303/imagick.so: cannot open shared object file: No such file or directory in Unknown on line 0
    [11-Jun-2016 15:24:25] NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20160303/mailparse.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20160303/mailparse.so: cannot open shared object file: No such file or directory in Unknown on line 0
    [11-Jun-2016 15:24:25] NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20160303/redis.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20160303/redis.so: cannot open shared object file: No such file or directory in Unknown on line 0
    

    unload unsupported extensions by removing their respective *.ini files found from command
    Code (Text):
    php --ini
    

    Code (Text):
    php --ini
    Configuration File (php.ini) Path: /usr/local/lib
    Loaded Configuration File:         /usr/local/lib/php.ini
    Scan for additional .ini files in: /etc/centminmod/php.d
    Additional .ini files parsed:      /etc/centminmod/php.d/a_customphp.ini,
    /etc/centminmod/php.d/curlcainfo.ini,
    /etc/centminmod/php.d/geoip.ini,
    /etc/centminmod/php.d/igbinary.ini,
    /etc/centminmod/php.d/imagick.ini,
    /etc/centminmod/php.d/mailparse.ini,
    /etc/centminmod/php.d/memcache.ini,
    /etc/centminmod/php.d/memcached.ini,
    /etc/centminmod/php.d/redis.ini,
    /etc/centminmod/php.d/zendopcache.ini,
    

    remove unsupported PHP extension's *.ini settings files and restart php-fpm
    Code (Text):
    rm -rf /etc/centminmod/php.d/igbinary.ini
    rm -rf /etc/centminmod/php.d/imagick.ini
    rm -rf /etc/centminmod/php.d/mailparse.ini
    rm -rf /etc/centminmod/php.d/redis.ini
    fpmrestart
    

    centmin.sh menu option 5 specify 7.1.0alpha1 version for tarball snapshots or 7.1.0 for git repo dev latest
    Code (Text):
    php -v
    PHP 7.1.0alpha1 (cli) (built: Jun 11 2016 15:21:28) ( NTS )
    Copyright (c) 1997-2016 The PHP Group
    Zend Engine v3.1.0-dev, Copyright (c) 1998-2016 Zend Technologies
        with Zend OPcache v7.1.0alpha1, Copyright (c) 1999-2016, by Zend Technologies
    

    php modules loaded for PHP 7.1.0 Alpha 1
    Code (Text):
    php -m
    [PHP Modules]
    bcmath
    bz2
    calendar
    Core
    ctype
    curl
    date
    dom
    enchant
    exif
    filter
    ftp
    gd
    geoip
    gettext
    gmp
    hash
    iconv
    imap
    intl
    json
    libxml
    mbstring
    mcrypt
    memcache
    memcached
    mysqli
    mysqlnd
    openssl
    pcntl
    pcre
    PDO
    pdo_mysql
    pdo_sqlite
    Phar
    posix
    pspell
    readline
    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
    

    memcache PHP extension
    Code (Text):
    php --ri memcache
    
    memcache
    
    memcache support => enabled
    Version => 3.0.9-dev
    Revision => $Revision$
    
    Directive => Local Value => Master Value
    memcache.allow_failover => 1 => 1
    memcache.max_failover_attempts => 20 => 20
    memcache.default_port => 11211 => 11211
    memcache.chunk_size => 32768 => 32768
    memcache.protocol => ascii => ascii
    memcache.hash_strategy => consistent => consistent
    memcache.hash_function => crc32 => crc32
    memcache.redundancy => 1 => 1
    memcache.session_redundancy => 2 => 2
    memcache.compress_threshold => 20000 => 20000
    memcache.lock_timeout => 15 => 15
    
    

    memcached PHP extension
    Code (Text):
    php --ri memcached
    
    memcached
    
    memcached support => enabled
    Version => 3.0.0b1
    libmemcached version => 1.0.16
    SASL support => yes
    Session support => yes
    igbinary support => no
    json support => yes
    msgpack support => no
    
    Directive => Local Value => Master Value
    memcached.sess_locking => 1 => 1
    memcached.sess_lock_wait_min => 1000 => 1000
    memcached.sess_lock_wait_max => 2000 => 2000
    memcached.sess_lock_retries => 5 => 5
    memcached.sess_lock_expire => 0 => 0
    memcached.sess_binary_protocol => 1 => 1
    memcached.sess_consistent_hash => 0 => 0
    memcached.sess_number_of_replicas => 0 => 0
    memcached.sess_randomize_replica_read => 0 => 0
    memcached.sess_remove_failed_servers => 0 => 0
    memcached.sess_server_failure_limit => 0 => 0
    memcached.sess_connect_timeout => 3000 => 3000
    memcached.sess_sasl_username => no value => no value
    memcached.sess_sasl_password => no value => no value
    memcached.sess_prefix => memc.sess. => memc.sess.
    memcached.sess_persistent => 0 => 0
    memcached.sess_lock_wait => not set => not set
    memcached.sess_lock_max_wait => not set => not set
    memcached.compression_type => fastlz => fastlz
    memcached.compression_factor => 1.3 => 1.3
    memcached.compression_threshold => 2000 => 2000
    memcached.serializer => php => php
    memcached.store_retry_count => 2 => 2
    memcached.default_consistent_hash => 0 => 0
    memcached.default_binary_protocol => 0 => 0
    memcached.default_connect_timeout => 0 => 0
    


    Update apparently imagick has 3.4.3RC1 php extension release for PHP 7.1 support so updated 123.09beta01 simple git pull or centmin.sh menu option 23 submenu option 2
    Code (Text):
    cd /usr/local/src/centminmod/
    git pull
    remote: Counting objects: 3, done.
    remote: Compressing objects: 100% (1/1), done.
    remote: Total 3 (delta 2), reused 3 (delta 2), pack-reused 0
    Unpacking objects: 100% (3/3), done.
    From https://github.com/centminmod/centminmod
       d928523..318f61f  123.09beta01 -> origin/123.09beta01
    Updating d928523..318f61f
    Fast-forward
    centmin.sh | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)
    

    Then centmin.sh menu option 15 run to install
    Code (Text):
    php --ini
    Configuration File (php.ini) Path: /usr/local/lib
    Loaded Configuration File:         /usr/local/lib/php.ini
    Scan for additional .ini files in: /etc/centminmod/php.d
    Additional .ini files parsed:      /etc/centminmod/php.d/a_customphp.ini,
    /etc/centminmod/php.d/curlcainfo.ini,
    /etc/centminmod/php.d/geoip.ini,
    /etc/centminmod/php.d/imagick.ini,
    /etc/centminmod/php.d/memcache.ini,
    /etc/centminmod/php.d/memcached.ini,
    /etc/centminmod/php.d/zendopcache.ini
    

    Code (Text):
    php --ri imagick
    
    imagick
    
    imagick module => enabled
    imagick module version => 3.4.3RC1
    imagick classes => Imagick, ImagickDraw, ImagickPixel, ImagickPixelIterator, ImagickKernel
    Imagick compiled with ImageMagick version => ImageMagick 6.9.4-8 Q16 x86_64 2016-06-09 http://www.imagemagick.org
    Imagick using ImageMagick library version => ImageMagick 6.9.4-8 Q16 x86_64 2016-06-09 http://www.imagemagick.org
    ImageMagick copyright => Copyright (C) 1999-2016 ImageMagick Studio LLC
    ImageMagick release date => 2016-06-09
    ImageMagick number of supported formats:  => 229
    ImageMagick supported formats => 3FR, AAI, AI, ART, ARW, AVI, AVS, BGR, BGRA, BGRO, BIE, BMP, BMP2, BMP3, BRF, CAL, CALS, CANVAS, CAPTION, CIN, CIP, CLIP, CMYK, CMYKA, CR2, CRW, CUR, CUT, DATA, DCM, DCR, DCX, DDS, DFONT, DNG, DOT, DPX, DXT1, DXT5, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EPT2, EPT3, ERF, EXR, FAX, FILE, FITS, FRACTAL, FTP, FTS, G3, GIF, GIF87, GRADIENT, GRAY, GROUP4, GV, H, HALD, HDR, HISTOGRAM, HRZ, HTM, HTML, HTTP, HTTPS, ICB, ICO, ICON, IIQ, INFO, INLINE, IPL, ISOBRL, ISOBRL6, JBG, JBIG, JNG, JNX, JPE, JPEG, JPG, JPS, JSON, K25, KDC, LABEL, M2V, M4V, MAC, MAGICK, MAP, MASK, MAT, MATTE, MEF, MIFF, MKV, MNG, MONO, MOV, MP4, MPC, MPEG, MPG, MRW, MSL, MSVG, MTV, MVG, NEF, NRW, NULL, ORF, OTB, OTF, PAL, PALM, PAM, PANGO, PATTERN, PBM, PCD, PCDS, PCL, PCT, PCX, PDB, PDF, PDFA, PEF, PES, PFA, PFB, PFM, PGM, PICON, PICT, PIX, PJPEG, PLASMA, PNG, PNG00, PNG24, PNG32, PNG48, PNG64, PNG8, PNM, PPM, PREVIEW, PS, PS2, PS3, PSB, PSD, PTIF, PWP, RADIAL-GRADIENT, RAF, RAS, RAW, RGB, RGBA, RGBO, RGF, RLA, RLE, RMF, RW2, SCR, SCT, SFW, SGI, SHTML, SIX, SIXEL, SPARSE-COLOR, SR2, SRF, STEGANO, SUN, SVG, SVGZ, TEXT, TGA, THUMBNAIL, TIFF, TIFF64, TILE, TIM, TTC, TTF, TXT, UBRL, UBRL6, UIL, UYVY, VDA, VICAR, VID, VIFF, VIPS, VST, WBMP, WEBP, WMF, WMV, WMZ, WPG, X, X3F, XBM, XC, XCF, XPM, XPS, XV, XWD, YCbCr, YCbCrA, YUV
    
    Directive => Local Value => Master Value
    imagick.locale_fix => 0 => 0
    imagick.skip_version_check => 0 => 0
    imagick.progress_monitor => 0 => 0
    

    Code (Text):
    php -m
    [PHP Modules]
    bcmath
    bz2
    calendar
    Core
    ctype
    curl
    date
    dom
    enchant
    exif
    filter
    ftp
    gd
    geoip
    gettext
    gmp
    hash
    iconv
    imagick
    imap
    intl
    json
    libxml
    mbstring
    mcrypt
    memcache
    memcached
    mysqli
    mysqlnd
    openssl
    pcntl
    pcre
    PDO
    pdo_mysql
    pdo_sqlite
    Phar
    posix
    pspell
    readline
    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 12, 2016
    • Like Like x 2
  4. RoldanLT

    RoldanLT Well-Known Member

    3,875
    946
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,290
    Local Time:
    5:51 PM
    1.11
    10.2
    I would probably bite RC1 for my live servers :).
    August 18 ;)
     
    • Agree Agree x 1
  5. Revenge

    Revenge Active Member

    287
    64
    28
    Feb 21, 2016
    Portugal
    Ratings:
    +227
    Local Time:
    10:51 AM
    1.9.x
    10.1.x
    So, PHP 7.1 will support HTTP/2 server push.
    If i did understand correctly, if the php script software we use implements this feature, we have server push on our site.

    PS: Its more likely for us to see Nginx implements this in the near future, than we see Xenforo or Invision Board starting to implements php 7.1 features in their software. Bur for Wordpress, probably someone will make a plugin for it.
     
    • Informative Informative x 2