Make MEMORY_LIMIT and ZEND_USE_MALLOC_MM to be always enabled. They don't make a

ny significant slowdown, but incrise maintainability a lot. Note that the setting of memory_limit wasn't changes (neither in main/main.c nor in php.ini) and it
still set to 16M.
This commit is contained in:
Dmitry Stogov 2006-12-20 10:50:46 +00:00
parent 460360ae53
commit a7c536fbcd
12 changed files with 25 additions and 167 deletions

View file

@ -721,16 +721,10 @@ static int send_php(request_rec *r, int display_source_mode, char *filename)
static int send_parsed_php(request_rec * r)
{
int result = send_php(r, 0, NULL);
#if MEMORY_LIMIT
{
char *mem_usage;
TSRMLS_FETCH();
TSRMLS_FETCH();
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
ap_table_setn(r->notes, "mod_php_memory_usage",
ap_psprintf(r->pool, "%u", zend_memory_peak_usage(1 TSRMLS_CC)));
return result;
}