Discover Centmin Mod today
Register Now

Beta Branch PHP 7.4.2 patch workaround in 123.09beta01

Discussion in 'Centmin Mod Github Commits' started by eva2000, Jan 26, 2020.

  1. eva2000

    eva2000 Administrator Staff Member

    58,893
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    1:14 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    PHP 7.4.2 patch workaround in 123.09beta01

    For wordpress session cookies issue reported at https://community.centminmod.com/th...-wordpress-after-upgrading-to-php-7-4-2.19071 revert tthe change for PHP 7.4.2 to 7.4.1 previous source code for main/php_variables.c outlined at https://community.centminmod.com/posts/81184/. This is just for PHP 7.4.2, you'd probably hit same bug in PHP 7.4.3 unless it's fixed upstream by PHP folks

    Continue reading...


    123.09beta01 branch
     
  2. eva2000

    eva2000 Administrator Staff Member

    58,893
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    1:14 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    Centmin Mod 123.09beta01 has been updated with a permanent patch fix for PHP 7.4.2 specific cookie bug https://community.centminmod.com/th...pgrading-to-php-7-4-2.19071/page-2#post-81231.

    cmupdate output
    Code (Text):
    cmupdate
    Saved working directory and index state WIP on 123.09beta01: 1a997c4 update PHP downgrade routine for 5.6 in 123.09beta01
    HEAD is now at 1a997c4 update PHP downgrade routine for 5.6 in 123.09beta01
    Updating 1a997c4..cb6e345
    Fast-forward
     centmin.sh                     |  2 +-
     inc/php_patch.inc              | 23 +++++++++++++++++++++++
     patches/php/php742-79174.patch | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
     3 files changed, 76 insertions(+), 1 deletion(-)
     create mode 100644 patches/php/php742-79174.patch
    

    then after running cmupdate, run centmin.sh menu option 5 and specify update to PHP 7.4.2 for recompile if you are using PHP 7.4.0 to 7.4.2

    after centmin.sh menu option 5 update/recompile of PHP 7.4.2 inspecting php patch log
    Code (Text):
    ls -lahrt /root/centminlogs/ | grep patch_php | tail -1
    -rw-rw-r--   1 root root  302 Jan 29 04:34 patch_php_290120-043335.log
    

    Code (Text):
    cat /root/centminlogs/patch_php_290120-043335.log
    patching PHP 7.4.2 for bug #79174
    https://bugs.php.net/bug.php?id=79174
    dos2unix: converting file php742-79174.patch to Unix format ...
    patching file NEWS
    Hunk #1 succeeded at 59 with fuzz 2 (offset 50 lines).
    patching file ext/standard/head.c
    patching file ext/standard/tests/network/setcookie.phpt