From: Scott MacVicar Date: Sat, 9 May 2009 19:45:26 +0000 (+0000) Subject: Fix bug #48206 again X-Git-Tag: php-5.3.0RC3~315 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=01a6919ff0b4be8e45450d5124ce1ff018f6f915;p=php Fix bug #48206 again --- diff --git a/ext/spl/spl_iterators.c b/ext/spl/spl_iterators.c index 40752f9884..9e7c956575 100755 --- a/ext/spl/spl_iterators.c +++ b/ext/spl/spl_iterators.c @@ -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()