From: Marcus Boerger Date: Sat, 30 Oct 2004 19:53:25 +0000 (+0000) Subject: - Be consistent and use names as keys (found by johannes) X-Git-Tag: RELEASE_0_2~795 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9d7cba9db0cc3ef68c4650cbcfb91ba880f1b493;p=php - Be consistent and use names as keys (found by johannes) --- diff --git a/Zend/zend_reflection_api.c b/Zend/zend_reflection_api.c index 219cdb229a..c849b78593 100644 --- a/Zend/zend_reflection_api.c +++ b/Zend/zend_reflection_api.c @@ -3257,7 +3257,7 @@ ZEND_METHOD(reflection_extension, getFunctions) ALLOC_ZVAL(function); reflection_function_factory(fptr, function TSRMLS_CC); - add_next_index_zval(return_value, function); + add_assoc_zval_ex(return_value, func->fname, strlen(func->fname)+1, function); func++; } } diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index 219cdb229a..c849b78593 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -3257,7 +3257,7 @@ ZEND_METHOD(reflection_extension, getFunctions) ALLOC_ZVAL(function); reflection_function_factory(fptr, function TSRMLS_CC); - add_next_index_zval(return_value, function); + add_assoc_zval_ex(return_value, func->fname, strlen(func->fname)+1, function); func++; } }