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

From: Date: Wed, 26 Aug 2026 20:37:33 +0000
Subject: [php-src] PR #23475: Optimizer: resolve arg/prop/return class hints via op_array scope
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-38160@lists.php.net to get a copy of this message
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

« previous php.git-pulls (#38160) next »