From: Derick Rethans Date: Tue, 7 Jun 2005 13:37:33 +0000 (+0000) Subject: - MFH: Added the --disable-zend-memory-manager switch to disable the Zend X-Git-Tag: php-4.4.0RC1~16 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1a3b493d9a0d5a9adce5acb6ff37e77a0207aa92;p=php - MFH: Added the --disable-zend-memory-manager switch to disable the Zend memory manager. #- I discussed this with Dmitry today - we found it useful. --- diff --git a/configure.in b/configure.in index 93ad74db41..081aa7758f 100644 --- a/configure.in +++ b/configure.in @@ -659,6 +659,16 @@ else ZEND_DEBUG=no fi +PHP_ARG_ENABLE(zend-memory-manager,whether to enable the Zend memory manager, +[ --disable-zend-memory-manager + Disable the Zend memory manager (DEVELOPERS ONLY)],yes, no) + +if test "$PHP_ZEND_MEMORY_MANAGER" = "yes"; then + AC_DEFINE(USE_ZEND_ALLOC, 1, [ ]) +else + AC_DEFINE(USE_ZEND_ALLOC, 0, [ ]) +fi + PHP_ARG_WITH(layout,[layout of installed files], [ --with-layout=TYPE Sets how installed files will be laid out. Type is one of "PHP" (default) or "GNU"], PHP, no) diff --git a/ext/standard/info.c b/ext/standard/info.c index 91f2c18df9..6a80b78143 100644 --- a/ext/standard/info.c +++ b/ext/standard/info.c @@ -465,6 +465,12 @@ PHPAPI void php_print_info(int flag TSRMLS_DC) php_info_print_table_row(2, "Debug Build", "no" ); #endif +#if USE_ZEND_ALLOC + php_info_print_table_row(2, "Zend Memory Manager", "enabled" ); +#else + php_info_print_table_row(2, "Zend Memory Manager", "disabled" ); +#endif + #ifdef ZTS php_info_print_table_row(2, "Thread Safety", "enabled" ); #else