From: Thies C. Arntzen Date: Sun, 16 Sep 2001 15:45:25 +0000 (+0000) Subject: fixed memory_peak resetting X-Git-Tag: PRE_SUBST_Z_MACROS~93 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=993813772565cceaebf51b6fcd1a2ebfcc6b25cc;p=php fixed memory_peak resetting --- diff --git a/sapi/apache/mod_php4.c b/sapi/apache/mod_php4.c index 5afb92e66f..bb4b2a30b4 100644 --- a/sapi/apache/mod_php4.c +++ b/sapi/apache/mod_php4.c @@ -595,7 +595,9 @@ static int send_parsed_php(request_rec * r) TSRMLS_FETCH(); sprintf(mem_usage,"%u", (int) AG(allocated_memory_peak)); + AG(allocated_memory_peak)=0; ap_table_setn(r->notes, "mod_php_memory_usage", ap_pstrdup(r->pool, mem_usage)); + } #endif