}
}
- function getChildren()
- {
- return parent::current();
- }
-
function current()
{
return parent::key();
* @brief A recursive array iterator
* @author Marcus Boerger
* @version 1.0
- * @since PHP 6.0
+ * @since PHP 5.1
*
* Passes the RecursiveIterator interface to the inner Iterator and provides
* the same functionality as FilterIterator. This allows you to skip parents
*/
function getChildren()
{
+ if ($this->current() instanceof self)
+ {
+ return $this->current();
+ }
if (empty($this->ref))
{
$this->ref = new ReflectionClass($this);
return;
}
+ if (Z_TYPE_PP(entry) == IS_OBJECT && instanceof_function(Z_OBJCE_PP(entry), Z_OBJCE_P(getThis()) TSRMLS_CC)) {
+ RETURN_ZVAL(*entry, 0, 0);
+ }
+
spl_instantiate_arg_ex1(Z_OBJCE_P(getThis()), &return_value, 0, *entry TSRMLS_CC);
}
/* }}} */