diff options
-rw-r--r-- | sapi/apache/mod_php4.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/sapi/apache/mod_php4.c b/sapi/apache/mod_php4.c index 13af96edee..54aea59e6e 100644 --- a/sapi/apache/mod_php4.c +++ b/sapi/apache/mod_php4.c @@ -540,7 +540,19 @@ static int send_php(request_rec *r, int display_source_mode, char *filename) static int send_parsed_php(request_rec * r) { - return send_php(r, 0, NULL); + int result = send_php(r, 0, NULL); + +#if MEMORY_USAGE_INFO + { + char mem_usage[ 32 ]; + ALS_FETCH() + + sprintf(mem_usage,"%u", (int) AG(max_allocated_memory)); + ap_table_setn(r->notes, "mod_php_memory_usage", ap_pstrdup(r->pool,mem_usage)); + } +#endif + + return result; } |