[php-src] PR #25272: Fix GH-25265: Misaligned read for virtual internal props in hooked subclass

From: Date: Sat, 07 Nov 2026 09:49:38 +0000
Subject: [php-src] PR #25272: Fix GH-25265: Misaligned read for virtual internal props in hooked subclass
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-40379@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/25272 Author: lazerg Internal classes like DOMDocument declare virtual properties that have no hooks and no slot in the object. When a user subclass adds a hooked property, get_object_vars() and foreach go through zho_build_properties_ex(), which treated every property without hooks as backed and read OBJ_PROP() at the virtual offset. Those properties are now skipped there, the same way rebuild_object_properties() already leaves them out. Fixes #25265

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