Skip to content

Commit

Permalink
Merge branch 'PHP-8.3'
Browse files Browse the repository at this point in the history
* PHP-8.3:
  memory_consumption must be page aligned
  • Loading branch information
dstogov committed Oct 23, 2023
2 parents 3d832fc + 1f25dea commit 3eba1a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/opcache/zend_accelerator_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ static ZEND_INI_MH(OnUpdateMemoryConsumption)
return FAILURE;
}
if (UNEXPECTED(memsize > ZEND_LONG_MAX / (1024 * 1024))) {
*p = ZEND_LONG_MAX;
*p = ZEND_LONG_MAX & ~(1024 * 1024 - 1);
} else {
*p = memsize * (1024 * 1024);
}
Expand Down

0 comments on commit 3eba1a8

Please sign in to comment.