Want to subscribe to topics you're interested in?
Become a Member

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

    55,155
    12,249
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,825
    Local Time:
    5:16 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    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

    55,155
    12,249
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,825
    Local Time:
    5:16 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    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

    4,100
    428
    83
    May 31, 2014
    Ratings:
    +836
    Local Time:
    10:16 AM
    Nginx-1.26.x
    MariaDB 10.6.x
    Great thank you !!!!