summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Zmievski <andrei@php.net>2006-03-24 21:06:36 +0000
committerAndrei Zmievski <andrei@php.net>2006-03-24 21:06:36 +0000
commitfe0cccc003dcd0a3c7aed2821f8d7b82dc03e8e7 (patch)
tree8fd5ea0d73ecf42b095628cbfd400ba82d160f2c
parent0260dfc9b1467bdfeadf72ea5e29a2a4dcf4ce3a (diff)
downloadphp-git-fe0cccc003dcd0a3c7aed2821f8d7b82dc03e8e7.tar.gz
Use intern->type for break iterator.
-rw-r--r--ext/unicode/unicode_iterators.c4
1 files changed, 2 insertions, 2 deletions
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;