1
0
mirror of https://github.com/php/php-src.git synced 2026-03-28 02:02:32 +01:00
This commit is contained in:
Dmitry Stogov
2006-07-17 06:46:19 +00:00
parent 688000ca74
commit 05dfd8d80b

View File

@@ -1401,7 +1401,7 @@ SPL_METHOD(RegexIterator, accept)
use_copy = 0;
} else if (intern->current.key_type == HASH_KEY_IS_UNICODE) {
subject_len = intern->current.str_key_len - 1;
subject = zend_unicode_to_ascii(intern->current.str_key.u, subject_len TSRMLS_DC);
subject = zend_unicode_to_ascii(intern->current.str_key.u, subject_len TSRMLS_CC);
if (!subject) {
/* FIXME: Unicode support??? : how to handle this error, with that exception? */
if (intern->u.regex.mode != REGIT_MODE_MATCH) {