[php-src] PR #22542: Fix GH-18847: set EX(opline) when the tracing JIT enters a call frame

From: Date: Wed, 01 Jul 2026 19:56:15 +0000
Subject: [php-src] PR #22542: Fix GH-18847: set EX(opline) when the tracing JIT enters a call frame
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-36767@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/22542 Author: iliaal Under the tracing JIT, entering a callee frame doesn't materialize EX(opline) in memory (it stays virtual in the IP register), so a fatal error raised at the frame's first opcode, e.g. an OOM while that opcode pushes its own call frame, makes zend_fetch_debug_backtrace() dereference a NULL opline. The store already existed on the observer path but was gated behind ZEND_OBSERVER_ENABLED; this drops the gate so it also runs with observers off. GH-18899 fixed the function-JIT undefined-variable variant of the same missing-opline class; this is the tracing-JIT call-entry sibling. This adds one EX(opline) store per JIT call-frame entry (the store observer builds already emit), so flagging in case you'd prefer to narrow it. Fixes php/php-src#18847

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