cvs: php4 /sapi/apache mod_php4.c
| From: | Thies C. Arntzen | Date: | Fri, 11 May 2001 18:17:09 +0000 |
| Subject: | cvs: php4 /sapi/apache mod_php4.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-5667@lists.php.net to get a copy of this message | ||
thies Fri May 11 11:17:09 2001 EDT
Modified files:
/php4/sapi/apache mod_php4.c
Log:
@- Added --enable-memory-usage-info. This creates a new Apache 1.x logging
@ directive "{mod_php_memory_usage}n" which will log the peak amount of
@ memory used by the script. (Thies)
Index: php4/sapi/apache/mod_php4.c
diff -u php4/sapi/apache/mod_php4.c:1.94 php4/sapi/apache/mod_php4.c:1.95
--- php4/sapi/apache/mod_php4.c:1.94 Mon May 7 15:02:44 2001
+++ php4/sapi/apache/mod_php4.c Fri May 11 11:17:08 2001
@@ -17,7 +17,7 @@
| PHP 4.0 patches by Zeev Suraski <zeev@zend.com> |
+----------------------------------------------------------------------+
*/
-/* $Id: mod_php4.c,v 1.94 2001/05/07 22:02:44 zeev Exp $ */
+/* $Id: mod_php4.c,v 1.95 2001/05/11 18:17:08 thies Exp $ */
#define NO_REGEX_EXTRA_H
#ifdef WIN32
@@ -540,7 +540,19 @@
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;
}