helly Thu Dec 22 00:37:07 2005 EDT Modified files: (Branch: PHP_5_1) /php-src/ext/spl spl_iterators.c Log: - WS http://cvs.php.net/viewcvs.cgi/php-src/ext/spl/spl_iterators.c?r1=1.73.2.14&r2=1.73.2.15&diff_format=u Index: php-src/ext/spl/spl_iterators.c diff -u php-src/ext/spl/spl_iterators.c:1.73.2.14 php-src/ext/spl/spl_iterators.c:1.73.2.15 --- php-src/ext/spl/spl_iterators.c:1.73.2.14 Thu Dec 22 00:35:37 2005 +++ php-src/ext/spl/spl_iterators.c Thu Dec 22 00:37:07 2005 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: spl_iterators.c,v 1.73.2.14 2005/12/22 00:35:37 helly Exp $ */ +/* $Id: spl_iterators.c,v 1.73.2.15 2005/12/22 00:37:07 helly Exp $ */ #ifdef HAVE_CONFIG_H # include "config.h" @@ -208,15 +208,15 @@ zval_ptr_dtor(&retval); if (has_children) { if (object->max_depth == -1 || object->max_depth > object->level) { - switch (object->mode) { - case RIT_LEAVES_ONLY: - case RIT_CHILD_FIRST: - object->iterators[object->level].state = RS_CHILD; - goto next_step; - case RIT_SELF_FIRST: - object->iterators[object->level].state = RS_SELF; - goto next_step; - } + switch (object->mode) { + case RIT_LEAVES_ONLY: + case RIT_CHILD_FIRST: + object->iterators[object->level].state = RS_CHILD; + goto next_step; + case RIT_SELF_FIRST: + object->iterators[object->level].state = RS_SELF; + goto next_step; + } } else { /* do not recurse into */ if (object->mode == RIT_LEAVES_ONLY) {
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php