[php-src] PR #22258: Fix GH-22158: JIT observer dispatch through wrong run_time_cache slot

From: Date: Mon, 08 Jun 2026 13:53:32 +0000
Subject: [php-src] PR #22258: Fix GH-22158: JIT observer dispatch through wrong run_time_cache slot
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-36346@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/22258 Author: iliaal Megamorphic observer dispatch in the tracing JIT read the wrong run_time_cache slot: the ir_PHI_2 operands were reversed against the ir_MERGE_WITH predecessor order, so a user function picked up the internal_function_extension slot. With op_array_extension != internal_function_extension (some extension reserves an op_array handle before the observer registers, e.g. an APM extension) that slot holds 0 and the JIT calls a NULL begin handler. The regression test adds a default-off zend_test.observer.reserve_op_array_handle to force the mismatch in-tree. Fixes #22158

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