From: Zeev Suraski Date: Mon, 3 Apr 2000 05:26:41 +0000 (+0000) Subject: Fix the problem with dl()'d modules not freeing their resources properly X-Git-Tag: php-4.0RC2~511 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f44afc6e99e1a41702fa78372ee21aae17756967;p=php Fix the problem with dl()'d modules not freeing their resources properly --- diff --git a/Zend/zend_list.c b/Zend/zend_list.c index 4d1bc495b5..1f9ecacef9 100644 --- a/Zend/zend_list.c +++ b/Zend/zend_list.c @@ -273,6 +273,7 @@ int clean_module_resource_destructors(list_destructors_entry *ld, int *module_nu if (ld->module_number == *module_number) { ELS_FETCH(); + zend_hash_apply_with_argument(&EG(regular_list), (int (*)(void *,void *)) clean_module_resource, (void *) &(ld->resource_id)); zend_hash_apply_with_argument(&EG(persistent_list), (int (*)(void *,void *)) clean_module_resource, (void *) &(ld->resource_id)); return 1; } else {