scottmac                Sat May  9 19:42:43 2009 UTC

  Modified files:              
    /php-src/ext/spl    spl_iterators.c 
  Log:
  Fix bug #48206 again
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/spl/spl_iterators.c?r1=1.189&r2=1.190&diff_format=u
Index: php-src/ext/spl/spl_iterators.c
diff -u php-src/ext/spl/spl_iterators.c:1.189 
php-src/ext/spl/spl_iterators.c:1.190
--- php-src/ext/spl/spl_iterators.c:1.189       Sat May  9 19:37:34 2009
+++ php-src/ext/spl/spl_iterators.c     Sat May  9 19:42:43 2009
@@ -16,7 +16,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: spl_iterators.c,v 1.189 2009/05/09 19:37:34 scottmac Exp $ */
+/* $Id: spl_iterators.c,v 1.190 2009/05/09 19:42:43 scottmac Exp $ */
 
 #ifdef HAVE_CONFIG_H
 # include "config.h"
@@ -600,7 +600,9 @@
        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



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to