Discover Centmin Mod today
Register Now

Beta Branch add PHP 7.0.33, 7.1.33 & 7.2 mysqlnd fix patch for MariaDB in 123.09beta01

Discussion in 'Centmin Mod Github Commits' started by eva2000, Nov 6, 2020.

  1. eva2000

    eva2000 Administrator Staff Member

    45,633
    10,356
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,070
    Local Time:
    10:34 PM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    add PHP 7.0.33, 7.1.33 & 7.2 mysqlnd fix patch for MariaDB in 123.09beta01

    - control backport fix enablement via variable PHP_MYSQLND_PATCH_FIX='y' which is enabled by default will apply backported fixes to PHP <= 7.2 on PHP compilation at initial install or via centmin.sh menu option 5. If you want to test with backported fixes disabled, just set in persistent config file /etc/centminmod/custom_config.inc the variable PHP_MYSQLND_PATCH_FIX='n' and then run centmin.sh menu option 5 to recompile your version of PHP. This only applies for PHP 5.6.40, 7.0.33, 7.1.33, 7.2.x as PHP 7.3, 7.4 and 8.0 are not affected.
    - backport fix from PHP 7.3 for mysqlnd optimization which fixes MariaDB 10.5.7, 10.4.16, 10.3.26, 10.2.35 and 10.1.48 release issue as these versions have stricter packet validation as a security measure [MDEV-24121] Recent MariaDB update appears to have introduced a DB connection issue for PHP < 7.3 (or anything using PDO) - Jira outlined at MariaDB - MariaDB 10.5.7, 10.4.16, 10.3.26, 10.2.35 and 10.1.48 now available
    - fix for PHP 5.6.40 has less testing done as backported patch needed reworking as originally didn't apply cleanly
    - to update, run cmupdate command, then run centmin.sh menu option 5 to recompile your choice of EOL 7.0.33 or 7.1.33 or any PHP 7.2.34 or higher version. PHP 7.3+, 7.4+ and 8.0+ already natively has this fixed. If you manually applied patch outlined at MariaDB - MariaDB 10.5.7, 10.4.16, 10.3.26, 10.2.35 and 10.1.48 now available, you'd have additional step before cmupdate run to remove the manual patch created patch files via SSH commands below:

    Code (Text):
    cmdir
    rm -f patches/php/php*-mysqlnd-fix.patch
    cmupdate
    ./centmin.sh


    Continue reading...

    123.09beta01 branch
     
  2. eva2000

    eva2000 Administrator Staff Member

    45,633
    10,356
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,070
    Local Time:
    10:34 PM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    example cmupdate command
    Code (Text):
    cmupdate
    No local changes to save
    Updating 9c9bc46..1cb5378
    Fast-forward
     centmin.sh                            |  3 ++-
     example/custom_config.inc             |  1 +
     inc/php_patch.inc                     | 63 ++++++++++++++++++++++++++++++++++++++++++++++++++++++---------
     patches/php/php5640-mysqlnd-fix.patch | 22 ++++++++++++++++++++++
     patches/php/php7033-mysqlnd-fix.patch | 33 +++++++++++++++++++++++++++++++++
     patches/php/php7133-mysqlnd-fix.patch | 33 +++++++++++++++++++++++++++++++++
     patches/php/php72-mysqlnd-fix.patch   | 33 +++++++++++++++++++++++++++++++++
     7 files changed, 178 insertions(+), 10 deletions(-)
     create mode 100644 patches/php/php5640-mysqlnd-fix.patch
     create mode 100644 patches/php/php7033-mysqlnd-fix.patch
     create mode 100644 patches/php/php7133-mysqlnd-fix.patch
     create mode 100644 patches/php/php72-mysqlnd-fix.patch
    
     
  3. pamamolf

    pamamolf Premium Member Premium Member

    3,883
    381
    83
    May 31, 2014
    Ratings:
    +741
    Local Time:
    2:34 PM
    Nginx-1.17.x
    MariaDB 10.3.x
    Great thank you !!!!