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
+}
+