Skip to content

Commit 1f25dea

Browse files
committed
Merge branch 'PHP-8.2' into PHP-8.3
* PHP-8.2: memory_consumption must be page aligned
2 parents a1818dd + fed7937 commit 1f25dea

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
@@ -73,7 +73,7 @@ static ZEND_INI_MH(OnUpdateMemoryConsumption)
7373
return FAILURE;
7474
}
7575
if (UNEXPECTED(memsize > ZEND_LONG_MAX / (1024 * 1024))) {
76-
*p = ZEND_LONG_MAX;
76+
*p = ZEND_LONG_MAX & ~(1024 * 1024 - 1);
7777
} else {
7878
*p = memsize * (1024 * 1024);
7979
}

0 commit comments

Comments
 (0)