diff options
author | Anantha Kesari H Y <hyanantha@php.net> | 2004-09-22 13:29:08 +0000 |
---|---|---|
committer | Anantha Kesari H Y <hyanantha@php.net> | 2004-09-22 13:29:08 +0000 |
commit | 8478f5e38e48ee789ba74a8b73b1944d848b0f9f (patch) | |
tree | 254efb49d0e94360e278768868a0625db13d7bb3 /Zend/zend_API.c | |
parent | ff40ceab56b8ec4b66c981927854d4fa80d1701b (diff) | |
download | php-git-8478f5e38e48ee789ba74a8b73b1944d848b0f9f.tar.gz |
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.
Diffstat (limited to 'Zend/zend_API.c')
-rw-r--r-- | Zend/zend_API.c | 8 |
1 files changed, 8 insertions, 0 deletions
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 } |