[php-src] PR #17749: Fix GH-17747: Exception on reading property in register-based FETCH_OBJ_R breaks JIT

From: Date: Sun, 09 Feb 2025 13:47:13 +0000
Subject: [php-src] PR #17749: Fix GH-17747: Exception on reading property in register-based FETCH_OBJ_R breaks JIT
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-30710@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/17749 Author: nielsdos When read_property fails, it may return &EG(uninitialized_zval), and the exception is handled in the VM. The VM will try to zval_ptr_dtor_nogc the result, but the result was never set, resulting in dtor'ing garbage data. To solve this, we check when a different zval* was returned and initialize the result with UNDEF. We don't need to copy as the slow_ex handler return values are used directly in a register.

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