From 8478f5e38e48ee789ba74a8b73b1944d848b0f9f Mon Sep 17 00:00:00 2001 From: Anantha Kesari H Y Date: Wed, 22 Sep 2004 13:29:08 +0000 Subject: [PATCH] When Apache is unloaded, it calls dlclose on all the PHP extensions that are loaded in memory. In the case of Apache 1.3, this call is blocking indefinitely. As a work around, this call is bypassed for Apache 1.3 build on NetWare only. This means that none of the loaded PHP extensions are unloaded. They will have to be manually unloaded before re-loading the Apache 1.3 again. --- Zend/zend_API.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Zend/zend_API.c b/Zend/zend_API.c index c2aefcdae0..b1031bec56 100644 --- a/Zend/zend_API.c +++ b/Zend/zend_API.c @@ -1498,9 +1498,17 @@ void module_destructor(zend_module_entry *module) } #if HAVE_LIBDL + #ifdef NETWARE + #ifdef APACHE_2_BUILD if (module->handle) { dlclose(module->handle); } + #endif + #else + if (module->handle) { + dlclose(module->handle); + } + #endif #endif } -- 2.50.1