]> granicus.if.org Git - php/commitdiff
MFH
authorMarcus Boerger <helly@php.net>
Sat, 30 Oct 2004 19:53:44 +0000 (19:53 +0000)
committerMarcus Boerger <helly@php.net>
Sat, 30 Oct 2004 19:53:44 +0000 (19:53 +0000)
Zend/zend_reflection_api.c
ext/reflection/php_reflection.c

index b40b8f200ef80acd6ce7ec1ae0bbe0f52f7e186b..3d3ee8049f04e59897f11ce3b649b238cf976372 100644 (file)
@@ -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++;
                }
        }
index b40b8f200ef80acd6ce7ec1ae0bbe0f52f7e186b..3d3ee8049f04e59897f11ce3b649b238cf976372 100644 (file)
@@ -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++;
                }
        }