diff options
| author | Dmitry Stogov <dmitry@php.net> | 2005-08-23 09:33:46 +0000 |
|---|---|---|
| committer | Dmitry Stogov <dmitry@php.net> | 2005-08-23 09:33:46 +0000 |
| commit | f4b8f4e95871bbce1b9a3eb8cef04ee9f437bfd6 (patch) | |
| tree | 615bb522213e08f4571605a5d8d2ee498a8d4ad6 /ext/spl/spl_functions.c | |
| parent | 24743055a3b744272457465646dbdee174ae5f81 (diff) | |
| download | php-git-f4b8f4e95871bbce1b9a3eb8cef04ee9f437bfd6.tar.gz | |
Unicode support cleanup
Diffstat (limited to 'ext/spl/spl_functions.c')
| -rwxr-xr-x | ext/spl/spl_functions.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/ext/spl/spl_functions.c b/ext/spl/spl_functions.c index 561cd97400..56e0825440 100755 --- a/ext/spl/spl_functions.c +++ b/ext/spl/spl_functions.c @@ -119,11 +119,7 @@ void spl_add_class_name(zval *list, zend_class_entry * pce, int allow, int ce_fl if (zend_u_hash_find(Z_ARRVAL_P(list), ztype, pce->name, len+1, (void*)&tmp) == FAILURE) { MAKE_STD_ZVAL(tmp); - if (UG(unicode)) { - ZVAL_UNICODEL(tmp, (UChar *)pce->name, pce->name_length, 1); - } else { - ZVAL_STRINGL(tmp, pce->name, pce->name_length, 1); - } + ZVAL_TEXTL(tmp, pce->name, pce->name_length, 1); zend_u_hash_add(Z_ARRVAL_P(list), ztype, pce->name, len+1, &tmp, sizeof(zval *), NULL); } } |
