We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e0ca4dc commit e270ee3Copy full SHA for e270ee3
ext/opcache/zend_accelerator_module.c
@@ -71,7 +71,7 @@ static ZEND_INI_MH(OnUpdateMemoryConsumption)
71
return FAILURE;
72
}
73
if (UNEXPECTED(memsize > ZEND_LONG_MAX / (1024 * 1024))) {
74
- *p = ZEND_LONG_MAX;
+ *p = ZEND_LONG_MAX & ~(1024 * 1024 - 1);
75
} else {
76
*p = memsize * (1024 * 1024);
77
0 commit comments