Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion ext/opcache/ZendAccelerator.c
Original file line number Diff line number Diff line change
Expand Up @@ -2183,7 +2183,14 @@ zend_op_array *persistent_compile_file(zend_file_handle *file_handle, int type)

/* See GH-17246: we disable GC so that user code cannot be executed during the optimizer run. */
bool orig_gc_state = gc_enable(false);
persistent_script = cache_script_in_shared_memory(persistent_script, key, &from_shared_memory);
zend_try {
persistent_script = cache_script_in_shared_memory(persistent_script, key, &from_shared_memory);
} zend_catch {
SHM_PROTECT();
HANDLE_UNBLOCK_INTERRUPTIONS();
zend_free_recorded_errors();
zend_bailout();
} zend_end_try();
gc_enable(orig_gc_state);
}

Expand Down