Skip to content

Optimizer: resolve arg/prop/return class hints via op_array scope - #23475

Open
jorgsowa wants to merge 1 commit into
php:masterfrom
jorgsowa:optimizer/thread-op-array-class-resolution
Open

Optimizer: resolve arg/prop/return class hints via op_array scope#23475
jorgsowa wants to merge 1 commit into
php:masterfrom
jorgsowa:optimizer/thread-op-array-class-resolution

Conversation

@jorgsowa

Copy link
Copy Markdown
Contributor

In zend_get_return_info_from_signature_only(), the second parameter (op_array) was hardcoded as NULL, causing class resolution (e.g., 'self', 'parent') for user/eval functions to skip the critical fallback to local lexical scope. This prevented accurate unlinked class hint resolution during optimizer passes and JIT trace building for conditionally defined classes.

Completes TODO and enables further optimizations

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant