summaryrefslogtreecommitdiff
path: root/ext/simplexml
diff options
context:
space:
mode:
authorKalle Sommer Nielsen <kalle@php.net>2010-08-21 16:22:46 +0000
committerKalle Sommer Nielsen <kalle@php.net>2010-08-21 16:22:46 +0000
commit77755af9b65ca89442946be80b545ec9574f1728 (patch)
tree57c293d0019b2483015848d30cf221c67dcb6e6e /ext/simplexml
parent76862dfd0c368516727270a393ca788a34c11fee (diff)
downloadphp-git-77755af9b65ca89442946be80b545ec9574f1728.tar.gz
Fixed bug #52655 (SimpleXMLIterator supports ArrayAccess without implementing the interface)
Diffstat (limited to 'ext/simplexml')
-rw-r--r--ext/simplexml/simplexml.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/simplexml/simplexml.c b/ext/simplexml/simplexml.c
index 5a5875108f..95e67b5272 100644
--- a/ext/simplexml/simplexml.c
+++ b/ext/simplexml/simplexml.c
@@ -2536,7 +2536,7 @@ PHP_MINIT_FUNCTION(simplexml)
sxe_class_entry = zend_register_internal_class(&sxe TSRMLS_CC);
sxe_class_entry->get_iterator = php_sxe_get_iterator;
sxe_class_entry->iterator_funcs.funcs = &php_sxe_iterator_funcs;
- zend_class_implements(sxe_class_entry TSRMLS_CC, 1, zend_ce_traversable);
+ zend_class_implements(sxe_class_entry TSRMLS_CC, 2, zend_ce_traversable, zend_ce_arrayaccess);
sxe_object_handlers.get_method = zend_get_std_object_handlers()->get_method;
sxe_object_handlers.get_constructor = zend_get_std_object_handlers()->get_constructor;
sxe_object_handlers.get_class_entry = zend_get_std_object_handlers()->get_class_entry;