From 5cf045d3577e9bf5800245c7c58900a2892daa9d Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Tue, 10 Sep 2024 15:42:23 +0300 Subject: [PATCH] Fix GH-15820: Core dumped with jit.opcache=1245 --- ext/opcache/jit/zend_jit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/opcache/jit/zend_jit.c b/ext/opcache/jit/zend_jit.c index ccfde3d47ad..d9b61a5bdcf 100644 --- a/ext/opcache/jit/zend_jit.c +++ b/ext/opcache/jit/zend_jit.c @@ -4764,7 +4764,7 @@ static int zend_jit_parse_config_num(zend_long jit) JIT_G(opt_level) = jit % 10; jit /= 10; - if (jit % 10 > 5) return FAILURE; + if (jit % 10 > 5 || jit % 10 == 4) return FAILURE; JIT_G(trigger) = jit % 10; jit /= 10;