summaryrefslogtreecommitdiff
path: root/sapi/apache_hooks/mod_php5.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2006-07-25 13:40:05 (GMT)
committerDmitry Stogov <dmitry@php.net>2006-07-25 13:40:05 (GMT)
commit356facf4afc9c3cea3d6648923f69daba9e1ec82 (patch)
treec7d3fc15dade605244f2df6b0b4fe3bec217d5c9 /sapi/apache_hooks/mod_php5.c
parent0a95528fc042143f00567deb54e7174e8881204f (diff)
downloadphp-356facf4afc9c3cea3d6648923f69daba9e1ec82.tar.gz
Changed memory_get_usage() and memory_get_peak_usage(). Optional boolean argument allows get memory size allocated by emalloc() (by default) or real size of memory allocated from system.
Diffstat (limited to 'sapi/apache_hooks/mod_php5.c')
-rw-r--r--sapi/apache_hooks/mod_php5.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sapi/apache_hooks/mod_php5.c b/sapi/apache_hooks/mod_php5.c
index 5ef0181..fcdb4d4 100644
--- a/sapi/apache_hooks/mod_php5.c
+++ b/sapi/apache_hooks/mod_php5.c
@@ -742,7 +742,7 @@ static int send_parsed_php(request_rec * r)
char *mem_usage;
TSRMLS_FETCH();
- mem_usage = ap_psprintf(r->pool, "%u", zend_memory_peak_usage(TSRMLS_C));
+ mem_usage = ap_psprintf(r->pool, "%u", zend_memory_peak_usage(1 TSRMLS_CC));
ap_table_setn(r->notes, "mod_php_memory_usage", mem_usage);
}
#endif