]> granicus.if.org Git - php/commitdiff
Fix CID 593 Mark the missing break by an explicit comment, we DO intend to fall throu...
authorEtienne Kneuss <colder@php.net>
Fri, 12 Aug 2011 22:20:35 +0000 (22:20 +0000)
committerEtienne Kneuss <colder@php.net>
Fri, 12 Aug 2011 22:20:35 +0000 (22:20 +0000)
ext/spl/spl_iterators.c

index 57f3d5200fbdcbe761db6ecaae97fb3957211a7a..c0a0ea2c7cb4a245870b8d2e4b86ed597168cfb4 100755 (executable)
@@ -214,11 +214,12 @@ next_step:
                                                zend_clear_exception(TSRMLS_C);
                                        }
                                }
+                               /* fall through */
                        case RS_START:
                                if (iterator->funcs->valid(iterator TSRMLS_CC) == FAILURE) {
                                        break;
                                }
-                               object->iterators[object->level].state = RS_TEST;                                       
+                               object->iterators[object->level].state = RS_TEST;
                                /* break; */
                        case RS_TEST:
                                ce = object->iterators[object->level].ce;