From: Andi Gutmans Date: Sat, 15 Jan 2005 00:19:05 +0000 (+0000) Subject: - Change to using DL_UNLOAD macro. X-Git-Tag: php-5.0.4RC1~344 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=17362b660042a6438f420e240525382d356f5d3a;p=php - Change to using DL_UNLOAD macro. --- diff --git a/Zend/zend_API.c b/Zend/zend_API.c index 5db74fa56f..48f4f444fc 100644 --- a/Zend/zend_API.c +++ b/Zend/zend_API.c @@ -1498,9 +1498,9 @@ void module_destructor(zend_module_entry *module) zend_unregister_functions(module->functions, -1, NULL TSRMLS_CC); } -#if HAVE_LIBDL +#if HAVE_LIBDL|| defined(HAVE_MACH_O_DYLD_H) if (module->handle) { - dlclose(module->handle); + DL_UNLOAD(module->handle); } #endif }