max_memory_limit
INI • Added in PHP 8.5
max_memory_limit
— Maximum amount of memory a script may consume
Default value | -1 |
Development value | -1 |
Production value | -1 |
Modifiability: INI_SYSTEM
- The max_memory_limit
INI directive directive is a system-directive, and can only be configured in php.ini
files or Server-API configuration files such as Apache httpd.conf
. It cannot be configured with ini_set
calls.
max_memory_limit = -1
Changes to the max_memory_limit
INI
PHP 8.5
- INI directive added
max_memory_limit
INI Availability
max_memory_limit
INI AvailabilityPHP Version | Availability |
---|---|
PHP 8.5Upcoming Release | Yes |
PHP 8.4Supported (Latest) | No |
PHP 8.3Supported | No |
PHP 8.2Security-Fixes Only | No |
PHP 8.1Security-Fixes Only | No |
PHP 8.0Unsupported | No |
PHP 7.4Unsupported | No |
PHP 7.3Unsupported | No |
PHP 7.2Unsupported | No |
PHP 7.1Unsupported | No |
PHP 7.0Unsupported | No |
PHP 5.6Unsupported | No |
PHP 5.5Unsupported | No |
PHP 5.4Unsupported | No |
PHP 5.3Unsupported | No |