mirror of
https://github.com/php/php-src.git
synced 2025-01-20 10:43:40 +08:00
Fix bug #48206 again
This commit is contained in:
parent
e89c1cf7d9
commit
01a6919ff0
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user