Skip to content

Commit

Permalink
Use cache slot for dom_property_exists() (php#15941)
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsdos authored Sep 18, 2024
1 parent d313ad6 commit 7bf5b7f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions ext/dom/php_dom.c
Original file line number Diff line number Diff line change
Expand Up @@ -451,12 +451,9 @@ zval *dom_write_property(zend_object *object, zend_string *name, zval *value, vo
static int dom_property_exists(zend_object *object, zend_string *name, int check_empty, void **cache_slot)
{
dom_object *obj = php_dom_obj_from_obj(object);
dom_prop_handler *hnd = NULL;
bool retval = false;
const dom_prop_handler *hnd = dom_get_prop_handler(obj, name, cache_slot);

if (obj->prop_handler != NULL) {
hnd = zend_hash_find_ptr(obj->prop_handler, name);
}
if (hnd) {
zval tmp;

Expand Down

0 comments on commit 7bf5b7f

Please sign in to comment.