mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Merge branch 'PHP-8.2' into PHP-8.3
* PHP-8.2: memory_consumption must be page aligned
This commit is contained in:
commit
1f25dea498
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue