From 5fb7b376dce9f5a92e6cc420e9aaac2b285a6b07 Mon Sep 17 00:00:00 2001 From: Scott MacVicar Date: Sat, 9 May 2009 19:42:43 +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 5a36bde33d..4dcc48a66e 100755 --- a/ext/spl/spl_iterators.c +++ b/ext/spl/spl_iterators.c @@ -600,7 +600,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() U -- 2.40.0