mirror of
https://github.com/php/php-src.git
synced 2025-08-18 15:08:55 +02:00
Fix bug #48206 again
This commit is contained in:
parent
e89c1cf7d9
commit
01a6919ff0
1 changed files with 3 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue