]> granicus.if.org Git - php/commitdiff
- Be consistent and use names as keys (found by johannes)
authorMarcus Boerger <helly@php.net>
Sat, 30 Oct 2004 19:53:25 +0000 (19:53 +0000)
committerMarcus Boerger <helly@php.net>
Sat, 30 Oct 2004 19:53:25 +0000 (19:53 +0000)
Zend/zend_reflection_api.c
ext/reflection/php_reflection.c

index 219cdb229ab10caf8c4e2ce280d8c69963dc5db2..c849b785935b5742d3a32c5a10a2dfde0e7bfdfe 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 219cdb229ab10caf8c4e2ce280d8c69963dc5db2..c849b785935b5742d3a32c5a10a2dfde0e7bfdfe 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++;
                }
        }