summaryrefslogtreecommitdiff
path: root/sapi/apache/mod_php4.c
diff options
context:
space:
mode:
authorThies C. Arntzen <thies@php.net>2001-09-16 15:45:25 +0000
committerThies C. Arntzen <thies@php.net>2001-09-16 15:45:25 +0000
commit993813772565cceaebf51b6fcd1a2ebfcc6b25cc (patch)
tree58f26499f2ea41d00ec9b58da92538c7e695db1f /sapi/apache/mod_php4.c
parent639a36a3dd5df3e3b9ea3cb6b318b69b78133641 (diff)
downloadphp-git-993813772565cceaebf51b6fcd1a2ebfcc6b25cc.tar.gz
fixed memory_peak resetting
Diffstat (limited to 'sapi/apache/mod_php4.c')
-rw-r--r--sapi/apache/mod_php4.c2
1 files changed, 2 insertions, 0 deletions
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