From: Michael Wallner Date: Mon, 6 Feb 2006 20:11:56 +0000 (+0000) Subject: - fix ReflectionClass::getInterfaces() X-Git-Tag: RELEASE_1_2~253 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=43550c7f4ec3d6746e618e4239e6c462b7ff9fbf;p=php - fix ReflectionClass::getInterfaces() --- diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index c8379393c1..4e2ab3215c 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -3334,7 +3334,7 @@ ZEND_METHOD(reflection_class, getInterfaces) zval *interface; ALLOC_ZVAL(interface); zend_reflection_class_factory(ce->interfaces[i], interface TSRMLS_CC); - add_assoc_zval_ex(return_value, ce->interfaces[i]->name, ce->interfaces[i]->name_length, interface); + add_assoc_zval_ex(return_value, ce->interfaces[i]->name, ce->interfaces[i]->name_length + 1, interface); } } }