]> granicus.if.org Git - php/commitdiff
- Change to using DL_UNLOAD macro.
authorAndi Gutmans <andi@php.net>
Sat, 15 Jan 2005 00:19:05 +0000 (00:19 +0000)
committerAndi Gutmans <andi@php.net>
Sat, 15 Jan 2005 00:19:05 +0000 (00:19 +0000)
Zend/zend_API.c

index 5db74fa56fe9ac7c6cd1364420bcc78f0e902b84..48f4f444fc7ee3f89c281e805b680e3c49ad3442 100644 (file)
@@ -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
 }