[php-src] PR #21695: Fix DO_UCALL may_be_trampoline flag to match DO_FCALL
| From: | andypost | Date: | Thu, 09 Apr 2026 19:05:38 +0000 |
| Subject: | [php-src] PR #21695: Fix DO_UCALL may_be_trampoline flag to match DO_FCALL | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-35642@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/21695
Author: andypost
The ZEND_DO_UCALL handler hardcodes may_be_trampoline=0 when calling i_init_func_execute_data(),
while ZEND_DO_FCALL passes 1. When the optimizer converts DO_FCALL to DO_UCALL for user functions
that return by reference, the ASSIGN_REF opcode receives an incorrectly initialized return value,
producing "Invalid opcode" errors or segfaults.
Closes #21691