]> granicus.if.org Git - php/commitdiff
Fixed destruction of dl() loaded extensions
authorDmitry Stogov <dmitry@php.net>
Thu, 21 Aug 2008 16:21:43 +0000 (16:21 +0000)
committerDmitry Stogov <dmitry@php.net>
Thu, 21 Aug 2008 16:21:43 +0000 (16:21 +0000)
Zend/zend_list.c

index f9533fab2e153fb129227efeed00fd90490d0ab0..6f13f5ce6cf97ad4cab73007d04c588459211c29 100644 (file)
@@ -253,7 +253,10 @@ static int clean_module_resource(zend_rsrc_list_entry *le, int *resource_id TSRM
 static int zend_clean_module_rsrc_dtors_cb(zend_rsrc_list_dtors_entry *ld, int *module_number TSRMLS_DC)
 {
        if (ld->module_number == *module_number) {
+#if 0
+               /* EG(resource_list) is already destroied in this point */
                zend_hash_apply_with_argument(&EG(regular_list), (apply_func_arg_t) clean_module_resource, (void *) &(ld->resource_id) TSRMLS_CC);
+#endif
                zend_hash_apply_with_argument(&EG(persistent_list), (apply_func_arg_t) clean_module_resource, (void *) &(ld->resource_id) TSRMLS_CC);
                return 1;
        } else {