sniper Wed Jul 9 19:16:21 2003 EDT
Modified files: (Branch: PHP_4_3)
/php-src/ext/standard aggregation.c
Log:
Fixed bug #24519 (aggregate_methods_by_list() does not increment refcount)
Index: php-src/ext/standard/aggregation.c
diff -u php-src/ext/standard/aggregation.c:1.11.4.5
php-src/ext/standard/aggregation.c:1.11.4.6
--- php-src/ext/standard/aggregation.c:1.11.4.5 Wed Jun 4 14:57:53 2003
+++ php-src/ext/standard/aggregation.c Wed Jul 9 19:16:21 2003
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: aggregation.c,v 1.11.4.5 2003/06/04 18:57:53 andrei Exp $ */
+/* $Id: aggregation.c,v 1.11.4.6 2003/07/09 23:16:21 sniper Exp $ */
#include "php.h"
#include "basic_functions.h"
@@ -155,6 +155,7 @@
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);
}
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php