From 01a6919ff0b4be8e45450d5124ce1ff018f6f915 Mon Sep 17 00:00:00 2001 From: Scott MacVicar Date: Sat, 9 May 2009 19:45:26 +0000 Subject: [PATCH] Fix bug #48206 again --- ext/spl/spl_iterators.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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() -- 2.50.1