From: Etienne Kneuss Date: Fri, 12 Aug 2011 22:20:35 +0000 (+0000) Subject: Fix CID 593 Mark the missing break by an explicit comment, we DO intend to fall throu... X-Git-Tag: php-5.4.0beta1~431 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b03860a935e24ac500d9369d57628196e6142871;p=php Fix CID 593 Mark the missing break by an explicit comment, we DO intend to fall through here --- diff --git a/ext/spl/spl_iterators.c b/ext/spl/spl_iterators.c index 57f3d5200f..c0a0ea2c7c 100755 --- a/ext/spl/spl_iterators.c +++ b/ext/spl/spl_iterators.c @@ -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;