diff options
| author | Ben Fuhrmannek | 2016-03-03 15:36:40 +0100 |
|---|---|---|
| committer | Ben Fuhrmannek | 2016-03-03 15:36:40 +0100 |
| commit | 3e77c15105551dee21edac0ab090ffaf10c4ff4d (patch) | |
| tree | 7e756df9267432260e4a329f9f3c0eb7b978c763 /memory_limit.c | |
| parent | adbeda7daaa6ff3a1fbc25d35cc62a1979214f7f (diff) | |
memory limit
Diffstat (limited to 'memory_limit.c')
| -rw-r--r-- | memory_limit.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/memory_limit.c b/memory_limit.c index 5b8b438..2a7a114 100644 --- a/memory_limit.c +++ b/memory_limit.c | |||
| @@ -52,6 +52,7 @@ static PHP_INI_MH(suhosin_OnChangeMemoryLimit) | |||
| 52 | if (new_value) { | 52 | if (new_value) { |
| 53 | PG(memory_limit) = zend_atol(ZSTR_VAL(new_value), ZSTR_LEN(new_value)); | 53 | PG(memory_limit) = zend_atol(ZSTR_VAL(new_value), ZSTR_LEN(new_value)); |
| 54 | if (hard_memory_limit > 0) { | 54 | if (hard_memory_limit > 0) { |
| 55 | // SDEBUG("%lld > %lld ?", PG(memory_limit), hard_memory_limit); | ||
| 55 | if (PG(memory_limit) > hard_memory_limit) { | 56 | if (PG(memory_limit) > hard_memory_limit) { |
| 56 | suhosin_log(S_MISC, "script tried to increase memory_limit to " ZEND_LONG_FMT " bytes which is above the allowed value", PG(memory_limit)); | 57 | suhosin_log(S_MISC, "script tried to increase memory_limit to " ZEND_LONG_FMT " bytes which is above the allowed value", PG(memory_limit)); |
| 57 | if (!SUHOSIN7_G(simulation)) { | 58 | if (!SUHOSIN7_G(simulation)) { |
