[php-src] PR #21369: Fix GH-21006: JIT SEGV with FETCH_OBJ_FUNC_ARG and property hooks
| From: | iliaal | Date: | Sat, 07 Mar 2026 00:51:50 +0000 |
| Subject: | [php-src] PR #21369: Fix GH-21006: JIT SEGV with FETCH_OBJ_FUNC_ARG and property hooks | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-35116@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/21369
Author: iliaal
## Summary
- When JIT falls back to the VM handler for
FETCH_OBJ_FUNC_ARG (or
FETCH_OBJ_R), the handler may find the SIMPLE_GET flag set in the runtime
cache for a hooked property. This causes it to push a call frame for the hook function, changing
execute_data. When the trace resumes, it continues with the wrong
execute_data, leading to a segfault.
- Fix: emit IR code in zend_jit_trace_handler() to clear the SIMPLE_GET
flag before calling the VM handler, so it falls through to read_property instead.
Closes GH-21006