mirror of
https://github.com/php/php-src.git
synced 2025-08-18 15:08:55 +02:00
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:
parent
460360ae53
commit
a7c536fbcd
12 changed files with 25 additions and 167 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue