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
test(opcache): integration-test refresh() under real opcache shared memory #125
Follow-up to the OpCache binary-file API (#111, merged).
RefreshWorkflowTest proves the patch→refresh→run loop under opcache.file_cache_only=1. The behaviour under full opcache with shared memory is only documented, not tested: a script already resident in SHM is not re-read until invalidated, so refresh() calls opcache_invalidate($path, true).
Scope: add an integration test (child process pattern, opcache.enable=1 with SHM, not file_cache_only) that: loads a script (populating SHM), patches its .bin, calls refresh(), and confirms a subsequent request in a fresh worker executes the patched body — verifying invalidation + reload semantics hold with SHM in the picture. Depends on #124 for CI to run it.
No test label exists in this repo; flagging the testing nature here.
Activity