* PHP-7.4:
Fix file cache run_time_cache unserialization
Update ZCSG(map_ptr_last) only if for_shm
} ZEND_HASH_FOREACH_END();
zend_persist_op_array_ex(&script->script.main_op_array, script);
- ZCSG(map_ptr_last) = CG(map_ptr_last);
+ if (for_shm) {
+ ZCSG(map_ptr_last) = CG(map_ptr_last);
+ }
+#ifdef HAVE_JIT
+ if (ZCG(jit_enabled) && for_shm) {
+ if (ZEND_JIT_LEVEL(ZCG(accel_directives).jit) >= ZEND_JIT_LEVEL_OPT_SCRIPT) {
+ zend_jit_script(&script->script);
+ }
+ zend_jit_protect();
+ }
+#endif
+
script->corrupted = 0;
ZCG(current_persistent_script) = NULL;