From: Johannes Schlüter Date: Sun, 17 Sep 2006 09:39:04 +0000 (+0000) Subject: - Unicode fix X-Git-Tag: RELEASE_1_0_0RC1~1644 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f1ed29ffd8f0b6f39435cd616383c34e73f10137;p=php - Unicode fix --- diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index 224c947ece..14bdcff73b 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -3532,8 +3532,7 @@ ZEND_METHOD(reflection_class, getInterfaces) zval *interface; ALLOC_ZVAL(interface); zend_reflection_class_factory(ce->interfaces[i], interface TSRMLS_CC); - /* FIXME: Unicode support??? */ - add_assoc_zval_ex(return_value, ce->interfaces[i]->name.s, ce->interfaces[i]->name_length + 1, interface); + add_u_assoc_zval_ex(return_value, UG(unicode)?IS_UNICODE:IS_STRING, ce->interfaces[i]->name, ce->interfaces[i]->name_length + 1, interface); } } }