diff options
author | thecalcaholic <6317548+theCalcaholic@users.noreply.github.com> | 2022-09-22 13:00:11 +0300 |
---|---|---|
committer | thecalcaholic <6317548+theCalcaholic@users.noreply.github.com> | 2022-09-22 13:27:39 +0300 |
commit | 546fd0d46d6295478e346cbda985cfb454e44469 (patch) | |
tree | 312f95d2a30ca8b679fc46cc7342a961cb13d831 | |
parent | d98356e335d864134fc86255854fd4ce591a8590 (diff) |
opcache.ini.sh: Add workaround for segfault when using PHP
Signed-off-by: thecalcaholic <6317548+theCalcaholic@users.noreply.github.com>
-rw-r--r-- | etc/ncp-templates/php/opcache.ini.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/etc/ncp-templates/php/opcache.ini.sh b/etc/ncp-templates/php/opcache.ini.sh index 7bbef81b..128f8bd8 100644 --- a/etc/ncp-templates/php/opcache.ini.sh +++ b/etc/ncp-templates/php/opcache.ini.sh @@ -13,10 +13,13 @@ then else TMP_DIR="$(source "${BINDIR}/CONFIG/nc-datadir.sh"; tmpl_opcache_dir)" fi +# Workaround for https://github.com/php/php-src/issues/7817 +ENABLE_OPCACHE="1" +[[ "$PHPVER" != '8.1' ]] || ENABLE_OPCACHE='0' cat <<EOF zend_extension=opcache.so -opcache.enable=1 +opcache.enable=${ENABLE_OPCACHE} opcache.enable_cli=1 opcache.fast_shutdown=1 opcache.interned_strings_buffer=8 |