Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2(PHP_5_2) / zend_alloc.c zend_alloc.h

From: Date: Thu, 14 Sep 2006 18:16:30 +0000
Subject: Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2(PHP_5_2) / zend_alloc.c zend_alloc.h
References: 1  Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-5257@lists.php.net to get a copy of this message
OK, thanks for the explanation. I though ZEND_USE_MALLOC_MM had other semantic. Nuno
No. By default we use Zend Memory Manager. ZEND_USE_MALLOC_MM allows disable it (and use malloc instead) at startup time, using environment variable USE_ZEND_ALLOC=0 Thanks. Dmitry.
-----Original Message----- From: Nuno Lopes [mailto:nlopess@php.net] Sent: Thursday, September 14, 2006 4:58 PM To: Dmitry Stogov; zend-engine-cvs@lists.php.net Subject: Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2(PHP_5_2) / zend_alloc.c zend_alloc.h
dmitry Thu Sep 14 08:00:45 2006 UTC
 Modified files:              (Branch: PHP_5_2)
/ZendEngine2 zend_alloc.c zend_alloc.h Log: Added is_zend_mm() to allow runtime check for zend memory manager
http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_alloc.c?r1=1.144.2.3.2.
9&r2=1.144.2.3.2.10&diff_format=u Index: ZendEngine2/zend_alloc.c diff -u ZendEngine2/zend_alloc.c:1.144.2.3.2.9 ZendEngine2/zend_alloc.c:1.144.2.3.2.10 --- ZendEngine2/zend_alloc.c:1.144.2.3.2.9 Thu Aug 31 11:53:57 2006 +++ ZendEngine2/zend_alloc.c Thu Sep 14 08:00:44 2006 @@ -1619,6 +1619,15 @@ static zend_alloc_globals alloc_globals; #endif +ZEND_API int is_zend_mm(TSRMLS_D) +{ +#if ZEND_USE_MALLOC_MM + return AG(mm_heap)->use_zend_alloc; +#else
shouldn't be 'return 0;' here?
+ return 1; +#endif +} +


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