We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3133ae commit 0d0d99eCopy full SHA for 0d0d99e
main/main.c
@@ -334,7 +334,7 @@ static PHP_INI_MH(OnChangeMemoryLimit)
334
}
335
336
/* If max_memory_limit is not set to unlimited, verify change */
337
- if (PG(max_memory_limit) != -1 && (value == -1 || value > PG(max_memory_limit))) {
+ if (value > PG(max_memory_limit)) {
338
if (value != -1) {
339
zend_error(E_WARNING,
340
"Failed to set memory_limit to %zd bytes. Setting to max_memory_limit instead (currently: " ZEND_LONG_FMT " bytes)",
0 commit comments