From 1250c43a39cb562659076859bcf7c77260e45ffd Mon Sep 17 00:00:00 2001 From: Zeev Suraski Date: Sat, 22 May 1999 16:10:51 +0000 Subject: * Add struct name to all typedef's so that they can be debugged with MSVC * Fix an AiCount bug - list(...) = $var was using $var multiple times, and thus causing AiCount to be decreased multiple times even though it was increased only once for $var. Mark all FETCH_DIM's so that they won't decrease AiCount, and only decrease AiCount on the last FETCH_DIM. * Fix a stupid bug - forgot to pass CLS_C to some compiler function. For some reason MSVC doesn't report these :I --- Zend/zend_alloc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Zend/zend_alloc.c') diff --git a/Zend/zend_alloc.c b/Zend/zend_alloc.c index d54f00608b..917f4949a3 100644 --- a/Zend/zend_alloc.c +++ b/Zend/zend_alloc.c @@ -357,7 +357,7 @@ ZEND_API void shutdown_memory_manager(int silent, int clean_cache) /* flush old leak */ if (leak_count>0) { if (!silent && leak_count>1) { - zend_message_dispatcher(ZMSG_MEMORY_LEAK_REPEATED, (void *) leak_count-1); + zend_message_dispatcher(ZMSG_MEMORY_LEAK_REPEATED, (void *) (leak_count-1)); } leak_count=0; total_bytes=0; @@ -382,7 +382,7 @@ ZEND_API void shutdown_memory_manager(int silent, int clean_cache) } #if ZEND_DEBUG if (!silent && leak_count>1) { - zend_message_dispatcher(ZMSG_MEMORY_LEAK_REPEATED, (void *) leak_count-1); + zend_message_dispatcher(ZMSG_MEMORY_LEAK_REPEATED, (void *) (leak_count-1)); } #endif } -- cgit v1.2.1