]> granicus.if.org Git - php/commitdiff
When Apache is unloaded, it calls dlclose on all the PHP extensions
authorAnantha Kesari H Y <hyanantha@php.net>
Wed, 22 Sep 2004 13:29:08 +0000 (13:29 +0000)
committerAnantha Kesari H Y <hyanantha@php.net>
Wed, 22 Sep 2004 13:29:08 +0000 (13:29 +0000)
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

index c2aefcdae08aa052d30ed373231be74dce978b8f..b1031bec56f5e6f22a9d232c29faf27e4862aa7d 100644 (file)
@@ -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
 }