derick                                   Mon, 08 Aug 2011 07:42:58 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=314469

Log:
- Document the new ZEND_DONT_UNLOAD_MODULES environment variable.

Changed paths:
    U   php/php-src/branches/PHP_5_4/Zend/README.ZEND_MM
    U   php/php-src/trunk/Zend/README.ZEND_MM

Modified: php/php-src/branches/PHP_5_4/Zend/README.ZEND_MM
===================================================================
--- php/php-src/branches/PHP_5_4/Zend/README.ZEND_MM    2011-08-08 07:12:12 UTC 
(rev 314468)
+++ php/php-src/branches/PHP_5_4/Zend/README.ZEND_MM    2011-08-08 07:42:58 UTC 
(rev 314469)
@@ -9,7 +9,7 @@

 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 @@

     $ 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:
 ---------


Modified: php/php-src/trunk/Zend/README.ZEND_MM
===================================================================
--- php/php-src/trunk/Zend/README.ZEND_MM       2011-08-08 07:12:12 UTC (rev 
314468)
+++ php/php-src/trunk/Zend/README.ZEND_MM       2011-08-08 07:42:58 UTC (rev 
314469)
@@ -9,7 +9,7 @@

 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 @@

     $ 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:
 ---------


-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to