[php-src] PR #25271: Fix GH-25266: Misaligned read in ReflectionProperty::isReadable()

From: Date: Sat, 07 Nov 2026 09:49:07 +0000
Subject: [php-src] PR #25271: Fix GH-25266: Misaligned read in ReflectionProperty::isReadable()
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-40378@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/25271 Author: lazerg Internal classes like DOMDocument declare virtual properties without hooks, backed by the object handlers. #21769 stopped asserting on those, but when an object is passed isReadable() still falls into the declared-property branch and reads OBJ_PROP(obj, prop->offset), which is not a real slot for a virtual property. This returns true for virtual properties without hooks, same as isWritable() already does for non-readonly ones. Fixes #25266

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