]> granicus.if.org Git - php/commitdiff
- Unicode fix
authorJohannes Schlüter <johannes@php.net>
Sun, 17 Sep 2006 09:39:04 +0000 (09:39 +0000)
committerJohannes Schlüter <johannes@php.net>
Sun, 17 Sep 2006 09:39:04 +0000 (09:39 +0000)
ext/reflection/php_reflection.c

index 224c947ece4b53666cc37d7f5ca662689690d586..14bdcff73b0558ab6432f00889cbd0aff8b98e8c 100644 (file)
@@ -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);
                }
        }
 }