Commit 16f1d6e
Fix DO_UCALL may_be_trampoline flag to match DO_FCALL
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.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent dc7f6a8 commit 16f1d6e
3 files changed
Lines changed: 48 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4209 | 4209 | | |
4210 | 4210 | | |
4211 | 4211 | | |
4212 | | - | |
| 4212 | + | |
4213 | 4213 | | |
4214 | 4214 | | |
4215 | 4215 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
0 commit comments