Skip to content

Commit 0d0d99e

Browse files
committed
[skip ci] Simplify condition
1 parent c3133ae commit 0d0d99e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ static PHP_INI_MH(OnChangeMemoryLimit)
334334
}
335335

336336
/* 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))) {
337+
if (value > PG(max_memory_limit)) {
338338
if (value != -1) {
339339
zend_error(E_WARNING,
340340
"Failed to set memory_limit to %zd bytes. Setting to max_memory_limit instead (currently: " ZEND_LONG_FMT " bytes)",

0 commit comments

Comments
 (0)