Fix bug #48206 again

This commit is contained in:
Scott MacVicar 2009-05-09 19:45:26 +00:00
parent e89c1cf7d9
commit 01a6919ff0

View File

@ -596,7 +596,9 @@ SPL_METHOD(RecursiveIteratorIterator, current)
zval **data;
iterator->funcs->get_current_data(iterator, &data TSRMLS_CC);
RETURN_ZVAL(*data, 1, 0);
if (data && *data) {
RETURN_ZVAL(*data, 1, 0);
}
} /* }}} */
/* {{{ proto void RecursiveIteratorIterator::next()