Skip to content

Commit 5cf045d

Browse files
committed
Fix GH-15820: Core dumped with jit.opcache=1245
1 parent bcd1f23 commit 5cf045d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/opcache/jit/zend_jit.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4764,7 +4764,7 @@ static int zend_jit_parse_config_num(zend_long jit)
47644764
JIT_G(opt_level) = jit % 10;
47654765

47664766
jit /= 10;
4767-
if (jit % 10 > 5) return FAILURE;
4767+
if (jit % 10 > 5 || jit % 10 == 4) return FAILURE;
47684768
JIT_G(trigger) = jit % 10;
47694769

47704770
jit /= 10;

0 commit comments

Comments
 (0)