From: Andrei Zmievski Date: Fri, 24 Mar 2006 21:06:36 +0000 (+0000) Subject: Use intern->type for break iterator. X-Git-Tag: RELEASE_1_3~271 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fe0cccc003dcd0a3c7aed2821f8d7b82dc03e8e7;p=php Use intern->type for break iterator. --- diff --git a/ext/unicode/unicode_iterators.c b/ext/unicode/unicode_iterators.c index a8c8a39f9d..8254b9a100 100644 --- a/ext/unicode/unicode_iterators.c +++ b/ext/unicode/unicode_iterators.c @@ -538,9 +538,9 @@ PHP_METHOD(TextIterator, __construct) intern->flags |= ITER_REVERSE; } - if (ti_type >= ITER_CHARACTER && ti_type < ITER_TYPE_LAST) { + if (intern->type >= ITER_CHARACTER && intern->type < ITER_TYPE_LAST) { UErrorCode status = U_ZERO_ERROR; - intern->u.brk.iter = ubrk_open(brk_type_map[ti_type - ITER_CHARACTER], UG(default_locale), text, text_len, &status); + intern->u.brk.iter = ubrk_open(brk_type_map[intern->type - ITER_CHARACTER], UG(default_locale), text, text_len, &status); if (!U_SUCCESS(status)) { php_error(E_RECOVERABLE_ERROR, "Could not create UBreakIterator: %s", u_errorName(status)); return;