From f897b5554c00e2971a62c444e17610006fadb982 Mon Sep 17 00:00:00 2001 From: Akarsh MR Date: Mon, 6 Apr 2026 11:11:41 +0000 Subject: [PATCH] issue-995 JIT memory allowcation error fix --- amp_conf/htdocs/admin/bootstrap.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/amp_conf/htdocs/admin/bootstrap.php b/amp_conf/htdocs/admin/bootstrap.php index 672fae012d..716a7efb15 100644 --- a/amp_conf/htdocs/admin/bootstrap.php +++ b/amp_conf/htdocs/admin/bootstrap.php @@ -47,6 +47,11 @@ // //enable error reporting and start benchmarking ini_set("default_charset","UTF-8"); +// PCRE JIT needs executable memory; SELinux / hardened PHP / some containers block it and the +// resulting warning becomes a fatal ErrorException under Whoops (e.g. fwconsole from logrotate). +if (function_exists('ini_set')) { + @ini_set('pcre.jit', '0'); +} function microtime_float() { list($usec,$sec) = explode(' ',microtime()); return ((float)$usec+(float)$sec); } $benchmark_starttime = microtime_float();