From: Derick Rethans Date: Mon, 8 Aug 2011 07:42:58 +0000 (+0000) Subject: - Document the new ZEND_DONT_UNLOAD_MODULES environment variable. X-Git-Tag: php-5.4.0beta1~479 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4a73e35168fa1ea848a7b73bb39bc7770ffa3f3f;p=php - Document the new ZEND_DONT_UNLOAD_MODULES environment variable. --- diff --git a/Zend/README.ZEND_MM b/Zend/README.ZEND_MM index cf9a9b7e83..60c22556be 100644 --- a/Zend/README.ZEND_MM +++ b/Zend/README.ZEND_MM @@ -9,7 +9,7 @@ allocation overhead and speedup memory management. The new manager's "configure" has no "--disable-zend-memory-manager" option, but it has "--enable-malloc-mm" instead. It is enabled by default in DEBUG -build and disabled by default in RELEASE build. when enabled it allows selecting +build and disabled by default in RELEASE build. When enabled it allows selecting between malloc and emalloc at runtime so you can use internal and external memory debuggers without recompilation. @@ -24,6 +24,15 @@ Zend MM disabled: $ USE_ZEND_ALLOC=0 valgrind --leak-check=full sapi/cli/php -r 'leak();' +Shared extensions: +------------------ + +Since PHP 5.4 it is possible to prevent shared extensions from unloading so +that valgrind can correctly track the memory leaks in shared extensions. For +this there is the ZEND_DONT_UNLOAD_MODULES environment variable. If set, then +DL_UNLOAD() is skipped during the shutdown of shared extensions. + + Tweaking: ---------