com php-src: Remove assignment irrelevant for release build: ext/intl/breakiterator/breakiterator_iterators.cpp

From: Date: Sun, 14 Oct 2018 19:35:57 +0000
Subject: com php-src: Remove assignment irrelevant for release build: ext/intl/breakiterator/breakiterator_iterators.cpp
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-103468@lists.php.net to get a copy of this message
Commit: a04cd4b948cc9199e40c2a57708e36ce3df80446 Author: Anatol Belski <ab@php.net> Sun, 14 Oct 2018 21:32:35 +0200 Parents: d7a3edd45db8d91ddf09cba7c594c63e63f62709 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=a04cd4b948cc9199e40c2a57708e36ce3df80446 Log: Remove assignment irrelevant for release build Changed paths: M ext/intl/breakiterator/breakiterator_iterators.cpp Diff: diff --git a/ext/intl/breakiterator/breakiterator_iterators.cpp b/ext/intl/breakiterator/breakiterator_iterators.cpp index c903001..9969561 100644 --- a/ext/intl/breakiterator/breakiterator_iterators..cpp +++ b/ext/intl/breakiterator/breakiterator_iterators.cpp @@ -168,10 +168,9 @@ static void _breakiterator_parts_move_forward(zend_object_iterator *iter) * No need to do anything, the engine increments ->index */ const char *s = Z_STRVAL(bio->text); - size_t slen = Z_STRLEN(bio->text); zend_string *res; - assert(next <= slen && next >= cur); + assert(next <= Z_STRLEN(bio->text) && next >= cur); res = zend_string_alloc(next - cur, 0); memcpy(ZSTR_VAL(res), &s[cur], ZSTR_LEN(res));

« previous php.cvs (#103468) next »