diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2020-04-28 15:09:41 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-04-28 15:09:41 +0200 |
commit | 75470bc312ef2e151696ea5c1ee026c089944623 (patch) | |
tree | c66425c87d02c6b6b20cbbf9ef846036d9acf631 /ext/dom/php_dom.c | |
parent | 817e100a72eb7815052c0dcca668b2549c4d7619 (diff) | |
download | php-git-75470bc312ef2e151696ea5c1ee026c089944623.tar.gz |
Revert "Fix #79065: DOM classes do not expose properties to Reflection"
This reverts commit 6bc8f7e5a9949b2ba79376abd1ed13d0b4d0ae3c.
This causes an assertion failure in PHPUnit.
Diffstat (limited to 'ext/dom/php_dom.c')
-rw-r--r-- | ext/dom/php_dom.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/ext/dom/php_dom.c b/ext/dom/php_dom.c index ad297ca778..6bc72e9f97 100644 --- a/ext/dom/php_dom.c +++ b/ext/dom/php_dom.c @@ -410,28 +410,6 @@ static int dom_property_exists(zval *object, zval *member, int check_empty, void } /* }}} */ -/* {{{ dom_get_properties */ -static HashTable *dom_get_properties(zval *object) -{ - dom_object *obj = Z_DOMOBJ_P(object); - HashTable *props = zend_std_get_properties(object); - - if (obj->prop_handler != NULL) { - zend_string *key; - dom_prop_handler *hnd; - - ZEND_HASH_FOREACH_STR_KEY_PTR(obj->prop_handler, key, hnd) { - zval val; - - if (hnd->read_func(obj, &val) == SUCCESS) { - zend_hash_update(props, key, &val); - } - } ZEND_HASH_FOREACH_END(); - } - return props; -} -/* }}} */ - static HashTable* dom_get_debug_info_helper(zval *object, int *is_temp) /* {{{ */ { dom_object *obj = Z_DOMOBJ_P(object); @@ -624,7 +602,6 @@ PHP_MINIT_FUNCTION(dom) dom_object_handlers.get_property_ptr_ptr = dom_get_property_ptr_ptr; dom_object_handlers.clone_obj = dom_objects_store_clone_obj; dom_object_handlers.has_property = dom_property_exists; - dom_object_handlers.get_properties = dom_get_properties; dom_object_handlers.get_debug_info = dom_get_debug_info; memcpy(&dom_nnodemap_object_handlers, &dom_object_handlers, sizeof(zend_object_handlers)); |