mirror of
https://github.com/php/php-src.git
synced 2024-09-21 09:57:23 +00:00
Fix GH-15497: Opcache with file_cache and JIT enabled crashes (#15635)
This commit is contained in:
parent
4db78140a0
commit
fd42cdbd0a
@ -689,7 +689,10 @@ static void zend_persist_op_array(zval *zv)
|
||||
}
|
||||
}
|
||||
#ifdef HAVE_JIT
|
||||
if (JIT_G(on) && JIT_G(opt_level) <= ZEND_JIT_LEVEL_OPT_FUNCS) {
|
||||
if (JIT_G(on)
|
||||
&& JIT_G(opt_level) <= ZEND_JIT_LEVEL_OPT_FUNCS
|
||||
&& (!ZCG(current_persistent_script)
|
||||
|| !ZCG(current_persistent_script)->corrupted)) {
|
||||
zend_jit_op_array(op_array, ZCG(current_persistent_script) ? &ZCG(current_persistent_script)->script : NULL);
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user