]> granicus.if.org Git - php/commitdiff
- MFZE1
authorAndi Gutmans <andi@php.net>
Tue, 26 Feb 2002 19:17:26 +0000 (19:17 +0000)
committerAndi Gutmans <andi@php.net>
Tue, 26 Feb 2002 19:17:26 +0000 (19:17 +0000)
Zend/zend.c
Zend/zend_alloc.c
Zend/zend_alloc.h

index 67f498bd79fff193d05a38a76a7ec580ba1f5b85..afeb01a628d9d59e99a9f0c9b1949e975bc47927 100644 (file)
@@ -358,7 +358,7 @@ static void alloc_globals_ctor(zend_alloc_globals *alloc_globals_p TSRMLS_DC)
 
 static void alloc_globals_dtor(zend_alloc_globals *alloc_globals_p TSRMLS_DC)
 {
-       shutdown_memory_manager(0, 1);
+       shutdown_memory_manager(0, 1 TSRMLS_CC);
 }
 
 
index a660bba33df51d9d6778b94fee205040063dd3f4..b24e31c2a1157fcf0bd922bbec812c6de59c280f 100644 (file)
@@ -445,7 +445,7 @@ ZEND_API void start_memory_manager(TSRMLS_D)
 }
 
 
-ZEND_API void shutdown_memory_manager(int silent, int clean_cache)
+ZEND_API void shutdown_memory_manager(int silent, int clean_cache TSRMLS_DC)
 {
        zend_mem_header *p, *t;
        unsigned int fci, i, j;
@@ -453,7 +453,6 @@ ZEND_API void shutdown_memory_manager(int silent, int clean_cache)
        int had_leaks = 0;
 #endif
        zend_fast_cache_list_entry *fast_cache_list_entry, *next_fast_cache_list_entry;
-       TSRMLS_FETCH();
 
 #if defined(ZEND_WIN32) && !ZEND_DEBUG
        if (clean_cache && AG(memory_heap)) {
index b799961f0d539b9103e8745385b691974d933d4f..c89fbfd04ab06e435b7221cffeddd68b149bbb1a 100644 (file)
@@ -115,7 +115,7 @@ ZEND_API int _persist_alloc(void *ptr ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC);
 ZEND_API int zend_set_memory_limit(unsigned int memory_limit);
 
 ZEND_API void start_memory_manager(TSRMLS_D);
-ZEND_API void shutdown_memory_manager(int silent, int clean_cache);
+ZEND_API void shutdown_memory_manager(int silent, int clean_cache TSRMLS_DC);
 
 #if ZEND_DEBUG
 ZEND_API int _mem_block_check(void *ptr, int silent ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC);