diff options
Diffstat (limited to 'memory_limit.c')
| -rw-r--r-- | memory_limit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/memory_limit.c b/memory_limit.c index 5dc20ce..6a6b975 100644 --- a/memory_limit.c +++ b/memory_limit.c | |||
| @@ -35,9 +35,9 @@ | |||
| 35 | static PHP_INI_MH(suhosin_OnChangeMemoryLimit) | 35 | static PHP_INI_MH(suhosin_OnChangeMemoryLimit) |
| 36 | { | 36 | { |
| 37 | #if SIZEOF_LONG==8 | 37 | #if SIZEOF_LONG==8 |
| 38 | long hard_memory_limit = 1<<63; | 38 | long hard_memory_limit = 0x7fffffffffffffff; |
| 39 | #elif SIZEOF_LONG==4 | 39 | #elif SIZEOF_LONG==4 |
| 40 | long hard_memory_limit = 1<<31; | 40 | long hard_memory_limit = 0x7fffffff; |
| 41 | #endif /* will produce a compile error or SIZEOF_LONG is not 4 or 8 */ | 41 | #endif /* will produce a compile error or SIZEOF_LONG is not 4 or 8 */ |
| 42 | if (stage == ZEND_INI_STAGE_RUNTIME) { | 42 | if (stage == ZEND_INI_STAGE_RUNTIME) { |
| 43 | if (SUHOSIN_G(memory_limit) > 0) { | 43 | if (SUHOSIN_G(memory_limit) > 0) { |
