php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | |
Patch Traversable_DOMNodeList_DOMNamedNodeMap for DOM XML related Bug #51721Patch version 2010-05-02 11:03 UTC Return to Bug #51721 | Download this patchThis patch is obsolete Obsoleted by patches: Patch Revisions:Developer: david.zuelke@bitextender.comIndex: ext/dom/php_dom.c =================================================================== --- ext/dom/php_dom.c (Revision 298873) +++ ext/dom/php_dom.c (Arbeitskopie) @@ -680,6 +680,7 @@ ce.create_object = dom_nnodemap_objects_new; dom_nodelist_class_entry = zend_register_internal_class_ex(&ce, NULL, NULL TSRMLS_CC); dom_nodelist_class_entry->get_iterator = php_dom_get_iterator; + zend_class_implements(dom_nodelist_class_entry TSRMLS_CC, 1, zend_ce_traversable); zend_hash_init(&dom_nodelist_prop_handlers, 0, NULL, NULL, 1); dom_register_prop_handler(&dom_nodelist_prop_handlers, "length", dom_nodelist_length_read, NULL TSRMLS_CC); @@ -689,6 +690,7 @@ ce.create_object = dom_nnodemap_objects_new; dom_namednodemap_class_entry = zend_register_internal_class_ex(&ce, NULL, NULL TSRMLS_CC); dom_namednodemap_class_entry->get_iterator = php_dom_get_iterator; + zend_class_implements(dom_namednodemap_class_entry TSRMLS_CC, 1, zend_ce_traversable); zend_hash_init(&dom_namednodemap_prop_handlers, 0, NULL, NULL, 1); dom_register_prop_handler(&dom_namednodemap_prop_handlers, "length", dom_namednodemap_length_read, NULL TSRMLS_CC); |
Copyright © 2001-2024 The PHP Group All rights reserved. |
Last updated: Thu Nov 21 18:01:29 2024 UTC |