From 29ed52ffa46529dc11d41a919f21b3e8ab32229e Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Tue, 18 Jul 2006 09:06:33 +0000 Subject: New memory manager --- sapi/apache/mod_php5.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sapi/apache/mod_php5.c') diff --git a/sapi/apache/mod_php5.c b/sapi/apache/mod_php5.c index dac762fabf..e661fdb4b0 100644 --- a/sapi/apache/mod_php5.c +++ b/sapi/apache/mod_php5.c @@ -684,8 +684,7 @@ static int send_parsed_php(request_rec * r) char *mem_usage; TSRMLS_FETCH(); - mem_usage = ap_psprintf(r->pool, "%u", AG(allocated_memory_peak)); - AG(allocated_memory_peak) = 0; + mem_usage = ap_psprintf(r->pool, "%u", zend_memory_peak_usage(TSRMLS_C)); ap_table_setn(r->notes, "mod_php_memory_usage", mem_usage); } #endif -- cgit v1.2.1