[GIT-PULLS] [php-src] PR #23475: Optimizer: resolve arg/prop/return class hints via op_array scope

[email protected] (jorgsowa)
Newsgroups php.git-pulls
Message-ID <[email protected]>
Pull Request: https://github.com/php/php-src/pull/23475
Author: jorgsowa

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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.