From: Etienne Kneuss Date: Thu, 10 Jul 2008 13:16:01 +0000 (+0000) Subject: Forgot to remove the count method here X-Git-Tag: BEFORE_HEAD_NS_CHANGE~1319 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ad3cd911ac51b4ac3fca2440c42b4c9072e5b960;p=php Forgot to remove the count method here --- diff --git a/ext/spl/spl_sxe.c b/ext/spl/spl_sxe.c index a91bf57286..5423431538 100755 --- a/ext/spl/spl_sxe.c +++ b/ext/spl/spl_sxe.c @@ -145,17 +145,6 @@ SPL_METHOD(SimpleXMLIterator, getChildren) RETURN_ZVAL(sxe->iter.data, 1, 0); } -/* {{{ proto int SimpleXMLIterator::count() U - Get number of child elements */ -SPL_METHOD(SimpleXMLIterator, count) -{ - long count = 0; - - Z_OBJ_HANDLER_P(getThis(), count_elements)(getThis(), &count TSRMLS_CC); - - RETURN_LONG(count); -} - static const zend_function_entry spl_funcs_SimpleXMLIterator[] = { SPL_ME(SimpleXMLIterator, rewind, NULL, ZEND_ACC_PUBLIC) SPL_ME(SimpleXMLIterator, valid, NULL, ZEND_ACC_PUBLIC) @@ -164,7 +153,6 @@ static const zend_function_entry spl_funcs_SimpleXMLIterator[] = { SPL_ME(SimpleXMLIterator, next, NULL, ZEND_ACC_PUBLIC) SPL_ME(SimpleXMLIterator, hasChildren, NULL, ZEND_ACC_PUBLIC) SPL_ME(SimpleXMLIterator, getChildren, NULL, ZEND_ACC_PUBLIC) - SPL_ME(SimpleXMLIterator, count, NULL, ZEND_ACC_PUBLIC) {NULL, NULL, NULL} }; /* }}} */