Re: New max_memory_limit INI setting
| From: | Jordi Boggiano | Date: | Tue, 15 Apr 2025 08:13:17 +0000 |
| Subject: | Re: New max_memory_limit INI setting | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-127111@lists.php.net to get a copy of this message | ||
On 14.04.2025 14:41, Ilija Tovilo wrote:
One open question is whether exceeding the max_memory_limit should also set memory_limit to max_memory_limit in addition to warning, giving the subsequent operation a higher chance not to straight out OOM error. Let me know if you have a preference in that regard.I'd say absolutely yes it should respect the requested memory limit as much as possible. Especially when setting memory_limit to -1 you'd definitely want this to mean "use the max allowed memory limit" and perhaps even skip the warning in that case as it's not a very specific request for a memory amount. Best, Jordi -- Jordi Boggiano @seldaek -https://seld.be