Skip to content

feat(opcache): relocate PHP 8.4 property hooks in cache binaries #113

Closed

Description

@lisachenko

Follow-up to the OpCache binary-file API (#111, merged).

PayloadRelocator refuses property-hooked classes: (un)serializePropInfo() throws OpCacheException::unsupportedPayload('property-hook relocation') when prop->hooks is set (src/OpCache/PayloadRelocator.php:913, :935).

Scope: port the prop->hooks branch of zend_file_cache_(un)serialize_prop_info — relocate the hooks array and recurse into each hook's op_array (ZEND_PROPERTY_HOOK_COUNT slots), both directions.

Acceptance: a fixture with a hooked property (public int $x { get => ...; set => ...; }) round-trips byte-for-byte and executes from the patched cache.

Activity

  1. added
    enhancementNew feature or request
    opcacheIssue is related to opcache integration. Either doesn't work well or behaves incorrect.
    on Aug 5, 2026
  2. added 5 commits that reference this issue on Aug 19, 2026
    cc37a01
    a661d63
    c6a4d31
    f057e9d
    040e736
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

    enhancementNew feature or requestopcacheIssue is related to opcache integration. Either doesn't work well or behaves incorrect.php84

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions