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

From: Date: Thu, 14 Sep 2006 12:57:58 +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-5255@lists.php.net to get a copy of this message
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 (#5255) next »