Join the community today
Become a Member

Master Branch add option to raise PHP 7+'s PCRE JIT Stack size in 123.09beta01

Discussion in 'Centmin Mod Github Commits' started by eva2000, Nov 2, 2019.

  1. eva2000

    eva2000 Administrator Staff Member

    58,893
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    12:33 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    add option to raise PHP 7+'s PCRE JIT Stack size in 123.09beta01

    Added 2 variables below which can be set in persistent config file. When enabled PHP_PCREJIT_STACKSIZE_ADJUST='y' and PHP_PCREJIT_STACKSIZE='512' are set in persistent config file /etc/centminmod/custom_config.inc prior to centmin.sh menu option 5 recompiles/updates, allows you to raise PHP's default PCRE JIT stack size Increase the PCRE JIT stack size by khromov · Pull Request #2910 · php/php-src from current defaults which for PHP 7.2 is 64 x 1024 max and PHP 7.3 is 192 x 1024 max and PHP 7.4 is 256 x 1024 max. PHP_PCREJIT_STACKSIZE defines the value to raise to i.e. 512 x 1024 for PCRE_JIT_STACK_MAX_SIZE which is hard coded and set by PHP. Disabled by default PHP_PCREJIT_STACKSIZE_ADJUST='n'.

    PHP_PCREJIT_STACKSIZE_ADJUST='y'
    PHP_PCREJIT_STACKSIZE='512'

    Continue reading...

    Centmin Mod Github Master branch


    Master branch is where most recent commits are made as at May 24, 2015.