cvs: ZendEngine2(PHP_5_0) / zend_alloc.h php-src configure.in php-src/ext/standard info.c

From: Date: Tue, 07 Jun 2005 13:37:13 +0000
Subject: cvs: ZendEngine2(PHP_5_0) / zend_alloc.h php-src configure.in php-src/ext/standard info.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-3745@lists.php.net to get a copy of this message
derick Tue Jun 7 09:37:13 2005 EDT Modified files: (Branch: PHP_5_0) /php-src configure.in /php-src/ext/standard info.c /ZendEngine2 zend_alloc.h Log: - MFH: Added the --disable-zend-memory-manager switch to disable the Zend memory manager. #- I discussed this with Dmitry today - we found it useful. http://cvs.php.net/diff.php/php-src/configure.in?r1=1.514.2.51&r2=1.514.2.52&ty=u Index: php-src/configure.in diff -u php-src/configure.in:1.514.2.51 php-src/configure.in:1.514.2.52 --- php-src/configure.in:1.514.2.51 Thu Jun 2 17:32:09 2005 +++ php-src/configure.in Tue Jun 7 09:37:12 2005 @@ -1,4 +1,4 @@ -dnl ## $Id: configure.in,v 1.514.2.51 2005/06/02 21:32:09 sniper Exp $ -*- sh -*- +dnl ## $Id: configure.in,v 1.514.2.52 2005/06/07 13:37:12 derick Exp $ -*- sh -*- dnl ## Process this file with autoconf to produce a configure script. divert(1) @@ -677,6 +677,16 @@ 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) http://cvs.php.net/diff.php/php-src/ext/standard/info.c?r1=1.245.2.1&r2=1.245.2.2&ty=u Index: php-src/ext/standard/info.c diff -u php-src/ext/standard/info.c:1.245.2.1 php-src/ext/standard/info.c:1.245.2.2 --- php-src/ext/standard/info.c:1.245.2.1 Sun May 8 13:29:37 2005 +++ php-src/ext/standard/info.c Tue Jun 7 09:37:13 2005 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: info.c,v 1.245.2.1 2005/05/08 17:29:37 rasmus Exp $ */ +/* $Id: info.c,v 1.245.2.2 2005/06/07 13:37:13 derick Exp $ */ #include "php.h" #include "php_ini.h" @@ -469,6 +469,12 @@ php_info_print_table_row(2, "Thread Safety", "disabled" ); #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 + #if HAVE_IPV6 php_info_print_table_row(2, "IPv6 Support", "enabled" ); #else http://cvs.php.net/diff.php/ZendEngine2/zend_alloc.h?r1=1.52.2.3&r2=1.52.2.4&ty=u Index: ZendEngine2/zend_alloc.h diff -u ZendEngine2/zend_alloc.h:1.52.2.3 ZendEngine2/zend_alloc.h:1.52.2.4 --- ZendEngine2/zend_alloc.h:1.52.2.3 Thu Apr 7 17:05:19 2005 +++ ZendEngine2/zend_alloc.h Tue Jun 7 09:37:13 2005 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_alloc.h,v 1.52.2.3 2005/04/07 21:05:19 sniper Exp $ */ +/* $Id: zend_alloc.h,v 1.52.2.4 2005/06/07 13:37:13 derick Exp $ */ #ifndef ZEND_ALLOC_H #define ZEND_ALLOC_H @@ -85,8 +85,6 @@ ZEND_API char *_estrdup(const char *s ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC) ZEND_ATTRIBUTE_MALLOC; ZEND_API char *_estrndup(const char *s, unsigned int length ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC) ZEND_ATTRIBUTE_MALLOC; -#define USE_ZEND_ALLOC 1 - #if USE_ZEND_ALLOC /* Standard wrapper macros */

« previous php.zend-engine.cvs (#3745) next »