]> granicus.if.org Git - php/commitdiff
Fixed bug #24519 (aggregate_methods_by_list() does not increment refcount)
authorfoobar <sniper@php.net>
Wed, 9 Jul 2003 23:16:21 +0000 (23:16 +0000)
committerfoobar <sniper@php.net>
Wed, 9 Jul 2003 23:16:21 +0000 (23:16 +0000)
ext/standard/aggregation.c

index f344311b83e93182f59438333d354fe22435a5c9..69eb36ca48ae1d3c8b0eb366cd9b61060cec7f13 100644 (file)
@@ -155,6 +155,7 @@ static void aggregate_methods(zend_class_entry *ce, zend_class_entry *from_ce, i
 
                        if (zend_hash_add(&ce->function_table, func_name, func_name_len,
                                                          (void*)function, sizeof(zend_function), NULL) == SUCCESS) {
+                               function_add_ref(function);
                                add_next_index_stringl(aggr_methods, func_name, func_name_len-1, 1);
                        }