summaryrefslogtreecommitdiff
path: root/sapi/apache_hooks
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2006-07-18 09:06:33 +0000
committerDmitry Stogov <dmitry@php.net>2006-07-18 09:06:33 +0000
commit29ed52ffa46529dc11d41a919f21b3e8ab32229e (patch)
treeabea71604780b607e44e47609fcae1cc17a4ae8b /sapi/apache_hooks
parent7f9a43653c229193b2c181e20150ab108052cea7 (diff)
downloadphp-git-29ed52ffa46529dc11d41a919f21b3e8ab32229e.tar.gz
New memory manager
Diffstat (limited to 'sapi/apache_hooks')
-rw-r--r--sapi/apache_hooks/mod_php5.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sapi/apache_hooks/mod_php5.c b/sapi/apache_hooks/mod_php5.c
index 55e02a4bdc..5ef0181e7d 100644
--- a/sapi/apache_hooks/mod_php5.c
+++ b/sapi/apache_hooks/mod_php5.c
@@ -742,8 +742,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