[php-src] PR #17909: Fix GH-15834: Segfault with hook "simple get" cache slot and minimal JIT

From: Date: Sun, 23 Feb 2025 21:45:09 +0000
Subject: [php-src] PR #17909: Fix GH-15834: Segfault with hook "simple get" cache slot and minimal JIT
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-30901@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/17909 Author: nielsdos The FETCH_OBJ_R VM handler has an optimization that directly enters into a hook if it is a simpler getter hook. This is not compatible with the minimal JIT because the minimal JIT will try to continue executing the opcodes after the FETCH_OBJ_R. To solve this, we check whether the opcode is still the expected one after the execution of the VM handler. If it is not, we know that we are going to execute a simple hook. In that case, exit to the VM. Normally, I wouldn't care too much about this issue, but someone had this cause a crash to them by accident: https://github.com/php/php-src/issues/17767

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