summaryrefslogtreecommitdiff
path: root/sapi/apache2filter
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2006-07-25 13:40:05 +0000
committerDmitry Stogov <dmitry@php.net>2006-07-25 13:40:05 +0000
commit356facf4afc9c3cea3d6648923f69daba9e1ec82 (patch)
treec7d3fc15dade605244f2df6b0b4fe3bec217d5c9 /sapi/apache2filter
parent0a95528fc042143f00567deb54e7174e8881204f (diff)
downloadphp-git-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/apache2filter')
-rw-r--r--sapi/apache2filter/sapi_apache2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sapi/apache2filter/sapi_apache2.c b/sapi/apache2filter/sapi_apache2.c
index 4e7c61411c..453a8e51b9 100644
--- a/sapi/apache2filter/sapi_apache2.c
+++ b/sapi/apache2filter/sapi_apache2.c
@@ -526,7 +526,7 @@ static int php_output_filter(ap_filter_t *f, apr_bucket_brigade *bb)
{
char *mem_usage;
- mem_usage = apr_psprintf(ctx->r->pool, "%u", zend_memory_peak_usage(TSRMLS_C));
+ mem_usage = apr_psprintf(ctx->r->pool, "%u", zend_memory_peak_usage(1 TSRMLS_CC));
apr_table_set(ctx->r->notes, "mod_php_memory_usage", mem_usage);
}
#endif