Skip to content

Commit 7bf5b7f

Browse files
authored
Use cache slot for dom_property_exists() (#15941)
1 parent d313ad6 commit 7bf5b7f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

ext/dom/php_dom.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -451,12 +451,9 @@ zval *dom_write_property(zend_object *object, zend_string *name, zval *value, vo
451451
static int dom_property_exists(zend_object *object, zend_string *name, int check_empty, void **cache_slot)
452452
{
453453
dom_object *obj = php_dom_obj_from_obj(object);
454-
dom_prop_handler *hnd = NULL;
455454
bool retval = false;
455+
const dom_prop_handler *hnd = dom_get_prop_handler(obj, name, cache_slot);
456456

457-
if (obj->prop_handler != NULL) {
458-
hnd = zend_hash_find_ptr(obj->prop_handler, name);
459-
}
460457
if (hnd) {
461458
zval tmp;
462459

0 commit comments

Comments
 (0)