From: Anatol Belski Date: Thu, 15 Feb 2018 20:19:33 +0000 (+0100) Subject: Remove condition that is always false X-Git-Tag: php-7.3.0alpha1~417 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=567d01ae20d2d5f2b96a31c6fb7bd53dee1baa80;p=php Remove condition that is always false --- diff --git a/ext/intl/breakiterator/breakiterator_iterators.cpp b/ext/intl/breakiterator/breakiterator_iterators.cpp index 9fde47ae73..c04e34cf27 100644 --- a/ext/intl/breakiterator/breakiterator_iterators.cpp +++ b/ext/intl/breakiterator/breakiterator_iterators.cpp @@ -171,9 +171,6 @@ static void _breakiterator_parts_move_forward(zend_object_iterator *iter) size_t slen = Z_STRLEN(bio->text); zend_string *res; - if (next == BreakIterator::DONE) { - next = (int32_t)slen; - } assert(next <= slen && next >= cur); res = zend_string_alloc(next - cur, 0);