Skip to content

test(opcache): integration-test refresh() under real opcache shared memory #125

Closed

Description

@lisachenko

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    CIBuild and Continuous Integration related ticketsenhancementNew feature or requestopcacheIssue is related to opcache integration. Either doesn't work well or behaves incorrect.test

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions