Don't anload zend extensions if ZEND_DONT_UNLOAD_MODULES environment variable is set

This commit is contained in:
Dmitry Stogov 2014-09-09 00:50:44 +04:00
parent a9d985263a
commit 7edd562787

View File

@ -195,7 +195,7 @@ void zend_shutdown_extensions(TSRMLS_D)
void zend_extension_dtor(zend_extension *extension)
{
#if ZEND_EXTENSIONS_SUPPORT && !ZEND_DEBUG
if (extension->handle) {
if (extension->handle && !getenv("ZEND_DONT_UNLOAD_MODULES")) {
DL_UNLOAD(extension->handle);
}
#endif