1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Use cache slot for dom_property_exists() (#15941)

This commit is contained in:
Niels Dossche
2024-09-18 17:23:24 +02:00
committed by GitHub
parent d313ad6098
commit 7bf5b7fa78

View File

@@ -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;