You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(opcache): relocate closures/arrow functions (dynamic_func_defs) in cache binaries #115
Follow-up to the OpCache binary-file API (#111, merged).
PayloadRelocator refuses op_arrays that define closures/arrow functions: it throws OpCacheException::unsupportedPayload('dynamic function definitions (closures/arrow fns) relocation') when op_array->num_dynamic_func_defs > 0 (src/OpCache/PayloadRelocator.php:588, :644).
Scope: port the dynamic_func_defs branch of zend_file_cache_(un)serialize_op_array — relocate the dynamic_func_defs array and recurse into each nested op_array, both directions.
Acceptance: a fixture whose functions contain a fn() / function() closure round-trips byte-for-byte and executes from the patched cache.
Activity