Skip to content

Fix cache key collision#363

Merged
realFlowControl merged 1 commit intodevelopfrom
florian/fix-cache-key
Dec 23, 2025
Merged

Fix cache key collision#363
realFlowControl merged 1 commit intodevelopfrom
florian/fix-cache-key

Conversation

@realFlowControl
Copy link
Collaborator

@realFlowControl realFlowControl commented Dec 23, 2025

This PR fixes the cache key collision described in #309 in php_parallel_cache_create(), by using zend_function->op_array.function_name as the main cache key instead of zend_function->op_array.opcodes on PHP >= 8.4, as PHP 8.4 introduced "real" names for closures in php/php-src#13550.
Older PHP versions have just {closure} as a function_name.

Fixes #309

@realFlowControl realFlowControl marked this pull request as draft December 23, 2025 11:01
@realFlowControl realFlowControl marked this pull request as ready for review December 23, 2025 12:59
@realFlowControl realFlowControl merged commit ffaa8b4 into develop Dec 23, 2025
81 of 83 checks passed
@realFlowControl realFlowControl deleted the florian/fix-cache-key branch January 8, 2026 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Closure Reuse Issue in parallel: Cached Closures from Previous Scripts are Reused

1 participant