From: Michael Wallner Date: Mon, 6 Feb 2006 20:12:48 +0000 (+0000) Subject: MFH: fix ReflectionClass::getInterfaces() X-Git-Tag: php-5.1.3RC1~140 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=beea63529ce10c9706e4e809d05821d9c11eb23b;p=php MFH: fix ReflectionClass::getInterfaces() --- diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index be98c1fed8..54d8e27658 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -3320,7 +3320,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); } } }