Skip to content

Commit fed7937

Browse files
committed
Merge branch 'PHP-8.1' into PHP-8.2
* PHP-8.1: memory_consumption must be page aligned
2 parents 6be3c18 + e270ee3 commit fed7937

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/opcache/zend_accelerator_module.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ static ZEND_INI_MH(OnUpdateMemoryConsumption)
7272
return FAILURE;
7373
}
7474
if (UNEXPECTED(memsize > ZEND_LONG_MAX / (1024 * 1024))) {
75-
*p = ZEND_LONG_MAX;
75+
*p = ZEND_LONG_MAX & ~(1024 * 1024 - 1);
7676
} else {
7777
*p = memsize * (1024 * 1024);
7878
}

0 commit comments

Comments
 (0)