Welcome to Centmin Mod Community
Become a Member

PHP PHP 7.0.0 Alpha 1 Released

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

  1. KeVo

    KeVo Active Member

    180
    71
    28
    May 28, 2014
    Ratings:
    +101
    Local Time:
    3:20 PM
    1.11.x
    10.1.18
    Anyone running this is production? :p
     
  2. eva2000

    eva2000 Administrator Staff Member

    43,055
    9,777
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,094
    Local Time:
    7:20 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
  3. KeVo

    KeVo Active Member

    180
    71
    28
    May 28, 2014
    Ratings:
    +101
    Local Time:
    3:20 PM
    1.11.x
    10.1.18
  4. KeVo

    KeVo Active Member

    180
    71
    28
    May 28, 2014
    Ratings:
    +101
    Local Time:
    3:20 PM
    1.11.x
    10.1.18
    @eva2000, are there any special steps needed to making memcached/libmemcached work, imagick, etc, or should they essentially be ready to go?
     
  5. eva2000

    eva2000 Administrator Staff Member

    43,055
    9,777
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,094
    Local Time:
    7:20 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    ready to go :D
     
  6. eva2000

    eva2000 Administrator Staff Member

    43,055
    9,777
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,094
    Local Time:
    7:20 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    PHP 7.0.0 Beta 2 released PHP: News Archive - 2015

    Code:
    23 Jul 2015, PHP 7.0.0 Beta 2
    
    - Core:
      . Fixed bug #70089 (segfault at ZEND_FETCH_DIM_W_SPEC_VAR_CONST_HANDLER ()).
        (Laruence)
      . Fixed bug #70057 (Build failure on 32-bit Mac OS X 10.6.8: recursive
        inlining). (Laruence)
      . Fixed bug #70012 (Exception lost with nested finally block). (Laruence)
      . Fixed bug #69996 (Changing the property of a cloned object affects the
        original). (Dmitry, Laruence)
      . Fixed bug #70083 (Use after free with assign by ref to overloaded objects).
        (Bob)
    
    - Curl:
      . Fixed bug #70065 (curl_getinfo() returns corrupted values). (Anatol)
    
    - GD:
      . Fixed bug #53156 (imagerectangle problem with point ordering). (cmb)
      . Fixed bug #66387 (Stack overflow with imagefilltoborder). (cmb)
      . Fixed bug #70102 (imagecreatefromwebm() shifts colors). (cmb)
      . Fixed bug #66590 (imagewebp() doesn't pad to even length). (cmb)
      . Fixed bug #66882 (imagerotate by -90 degrees truncates image by 1px). (cmb)
      . Fixed bug #70064 (imagescale(..., IMG_BICUBIC) leaks memory). (cmb)
      . Fixed bug #69024 (imagescale segfault with palette based image). (cmb)
      . Fixed bug #53154 (Zero-height rectangle has whiskers). (cmb)
      . Fixed bug #67447 (imagecrop() add a black line when cropping). (cmb)
      . Fixed bug #68714 (copy 'n paste error). (cmb)
      . Fixed bug #66339 (PHP segfaults in imagexbm). (cmb)
      . Fixed bug #70047 (gd_info() doesn't report WebP support). (cmb)
      . Replace libvpx with libwebp for bundled libgd. (cmb, Anatol)
    
    - Opcache:
      . Fixed bug #70058 (Build fails when building for i386). (Laruence)
      . Fixed bug #70022 (Crash with opcache using opcache.file_cache_only=1).
        (Anatol)
    
    - Soap:
      . Fixed bug #70079 (Segmentation fault after more than 100 SoapClient
        calls). (Laruence)
      . Fixed bug #70032 (make_http_soap_request calls
        zend_hash_get_current_key_ex(,,,NULL). (Laruence)
    
    - SPL:
      . Fixed bug #70053 (MutlitpleIterator array-keys incompatible change in
        PHP 7). (Tjerk)
    
    - Standard:
      . Fixed bug #70096 (Repeated iptcembed() adds superfluous FF bytes). (cmb)
      . Fixed bug #70018 (exec does not strip all whitespace). (Laruence)
    
    - Tokenizer:
      . Fixed bug #69430 (token_get_all has new irrecoverable errors). (Nikita)
     
    • Like Like x 3
    • Informative Informative x 1
  7. Andy

    Andy Active Member

    456
    73
    28
    Aug 6, 2014
    Ratings:
    +101
    Local Time:
    4:20 PM
    I hope version 7 will bring much speed and stability. Can't wait to upgrade.
     
  8. KeVo

    KeVo Active Member

    180
    71
    28
    May 28, 2014
    Ratings:
    +101
    Local Time:
    3:20 PM
    1.11.x
    10.1.18
    PHP 7.0.0 Beta 3 Released

    Code:
    06 Aug 2015, PHP 7.0.0 Beta 3
    
    - Core:
      . Fixed "finally" issues. (Nikita, Dmitry)
      . Fixed bug #70098 (Real memory usage doesn't decrease). (Dmitry)
      . Fixed bug #70159 (__CLASS__ is lost in closures). (Julien)
      . Fixed bug #70156 (Segfault in zend_find_alias_name). (Laruence)
      . Fixed bug #70124 (null ptr deref / seg fault in ZEND_HANDLE_EXCEPTION).
        (Laruence)
      . Fixed bug #70117 (Unexpected return type error). (Laruence)
      . Fixed bug #70106 (Inheritance by anonymous class). (Bob)
      . Fixed bug #69674 (SIGSEGV array.c:953). (cmb)
      . Fixed bug #70164 (__COMPILER_HALT_OFFSET__ under namespace is not defined).
        (Bob)
      . Fixed bug #70108 (sometimes empty $_SERVER['QUERY_STRING']). (Anatol)
      . Fixed bug #70179 ($this refcount issue). (Bob)
      . Fixed bug #69896 ('asm' operand has impossible constraints). (Anatol)
      . Fixed bug #70183 (null pointer deref (segfault) in zend_eval_const_expr).
        (Hugh Davenport)
      . Fixed bug #70182 (Segfault in ZEND_ASSIGN_DIV_SPEC_CV_UNUSED_HANDLER).
        (Hugh Davenport)
      . Fixed bug #69793 (Remotely triggerable stack exhaustion via recursive
        method calls). (Stas)
      . Fixed bug #69892 (Different arrays compare indentical due to integer key
        truncation). (Nikita)
      . Fixed bug #70121 (unserialize() could lead to unexpected methods execution
        / NULL pointer deref). (Stas)
    
    - Curl:
      . Fixed bug #70163 (curl_setopt_array() type confusion). (Laruence)
    
    - IMAP:
      . Fixed bug #70158 (Building with static imap fails). (cmb)
      . Fixed bug #69998 (curl multi leaking memory). (Pierrick)
    
    - Opcache:
      . Fixed bug #70111 (Segfault when a function uses both an explicit return
        type and an explicit cast). (Laruence)
    
    - OpenSSL:
      . Fixed bug #70014 (openssl_random_pseudo_bytes() is not cryptographically
        secure). (Stas)
    
    - Phar:
      . Improved fix for bug #69441. (Anatol Belski)
      . Fixed bug #70019 (Files extracted from archive may be placed outside of
        destination directory). (Anatol Belski)
    
    - Phpdbg:
      . Fixed bug #70138 (Segfault when displaying memory leaks). (Bob)
    
    - SOAP:
      . Fixed bug #70081 (SoapClient info leak / null pointer dereference via
         multiple type confusions). (Stas)
    
    - SPL:
      . Fixed bug #70068 (Dangling pointer in the unserialization of ArrayObject
        items). (sean.heelan)
      . Fixed bug #70166 (Use After Free Vulnerability in unserialize() with
        SPLArrayObject). (taoguangchen at icloud dot com)
      . Fixed bug #70168 (Use After Free Vulnerability in unserialize() with
        SplObjectStorage). (taoguangchen at icloud dot com)
      . Fixed bug #70169 (Use After Free Vulnerability in unserialize() with
        SplDoublyLinkedList). (taoguangchen at icloud dot com)
    
    - Standard:
      . Fixed bug #70140 (str_ireplace/php_string_tolower - Arbitrary Code
      . Implemented #70112 (Allow "dirname" to go up various times). (Remi)
        Execution). (Laruence)
      . Fixed bug #36365 (scandir duplicates file name at every 65535th file). (cmb)
    
     
    • Like Like x 1
  9. eva2000

    eva2000 Administrator Staff Member

    43,055
    9,777
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,094
    Local Time:
    7:20 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    nice @KeVo beat me to it :D
     
    • Winner Winner x 1
  10. Andy

    Andy Active Member

    456
    73
    28
    Aug 6, 2014
    Ratings:
    +101
    Local Time:
    4:20 PM
    Should I use 7.0.0 or 7beta3 when upgrade php?
     
  11. eva2000

    eva2000 Administrator Staff Member

    43,055
    9,777
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,094
    Local Time:
    7:20 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    7.0.0 = latest dev master newer than 7.0.0beta3 specified version

    up to you :)
     
    • Informative Informative x 1
  12. KeVo

    KeVo Active Member

    180
    71
    28
    May 28, 2014
    Ratings:
    +101
    Local Time:
    3:20 PM
    1.11.x
    10.1.18
    I tried upgrading one time to the 2nd beta and my site was hitting a blank white page. Any tips on what might have caused that?
     
  13. eva2000

    eva2000 Administrator Staff Member

    43,055
    9,777
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,094
    Local Time:
    7:20 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    try restarting php-fpm after upgrading
     
  14. Andy

    Andy Active Member

    456
    73
    28
    Aug 6, 2014
    Ratings:
    +101
    Local Time:
    4:20 PM
    upgraded one of my sites and got these warnings

    Code:
    php -v
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20141001/igbinary.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20141001/igbinary.so: cannot open shared object file: No such file or directory in Unknown on line 0
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20141001/memcache.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20141001/memcache.so: cannot open shared object file: No such file or directory in Unknown on line 0
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20141001/redis.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20141001/redis.so: cannot open shared object file: No such file or directory in Unknown on line 0
    PHP 7.0.0-dev (cli) (built: Aug  7 2015 02:28:49)
    Copyright (c) 1997-2015 The PHP Group
    Zend Engine v3.0.0-dev, Copyright (c) 1998-2015 Zend Technologies
        with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2015, by Zend Technologies
     
  15. KeVo

    KeVo Active Member

    180
    71
    28
    May 28, 2014
    Ratings:
    +101
    Local Time:
    3:20 PM
    1.11.x
    10.1.18
    You have to remove these files with these commands:

    Code:
    rm -rf /etc/centminmod/php.d/igbinary.ini
    rm -rf /etc/centminmod/php.d/memcache.ini
    rm -rf /etc/centminmod/php.d/mongodb.ini
    rm -rf /etc/centminmod/php.d/redis.ini
    service php-fpm restart
    Now, with that said, I'm still experiencing white page after removing these and restarting PHP-FPM, so if you have the same issue, please let me know if you experience it and maybe you and I can work on getting this issue sorted out.

    EDIT: I downgraded my PHP back to 5.6.11 and back into my XenForo admin panel, I am seeing errors here about the memcached extension:

    Code:
    The memcached extension must be loaded for using this backend !
    46 minutes ago - library/Zend/Cache.php:209
    Do I need to re-install memcached extension?
     
    Last edited: Aug 7, 2015
    • Like Like x 1
  16. eva2000

    eva2000 Administrator Staff Member

    43,055
    9,777
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,094
    Local Time:
    7:20 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    see first few posts of this thread, those 3 extensions - igbinary, memcache and redis aren't supported in PHP 7 right now so need to remove their respective .ini files
    did you restart php-fpm ? which backend cache you using libmemcached or memcached ?

    check if memcached is loaded

    Code:
    php --ri memcached
     
    • Like Like x 1
  17. KeVo

    KeVo Active Member

    180
    71
    28
    May 28, 2014
    Ratings:
    +101
    Local Time:
    3:20 PM
    1.11.x
    10.1.18
    Yep, and I basically copy/paste your config file for it from the apc or memcached thread. So I was using libmemcached.
     
  18. KeVo

    KeVo Active Member

    180
    71
    28
    May 28, 2014
    Ratings:
    +101
    Local Time:
    3:20 PM
    1.11.x
    10.1.18
    WidgetFramework is what's causing my blank pages. I will need to report this in the thread on XF. :)
     
    • Like Like x 1
  19. eva2000

    eva2000 Administrator Staff Member

    43,055
    9,777
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,094
    Local Time:
    7:20 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    might need to switch from libmemcached to memcached and see
     
  20. KeVo

    KeVo Active Member

    180
    71
    28
    May 28, 2014
    Ratings:
    +101
    Local Time:
    3:20 PM
    1.11.x
    10.1.18
    I upgraded WidgetFramework to a beta version that can be found on xfrock's site and it seems to have fixed whatever was causing that blank page. XenForo is working quite well now and no errors to report thus far. :)
     
    • Informative Informative x 1