projects
/
GitHub
/
WoltLab
/
WCF.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
61bf5ee
)
Handle `memory_limit=-1` in test.php
author
Tim Düsterhus
<duesterhus@woltlab.com>
Wed, 6 Sep 2023 09:24:57 +0000
(11:24 +0200)
committer
Tim Düsterhus
<duesterhus@woltlab.com>
Wed, 6 Sep 2023 09:25:32 +0000
(11:25 +0200)
wcfsetup/test.php
patch
|
blob
|
blame
|
history
diff --git
a/wcfsetup/test.php
b/wcfsetup/test.php
index 7f5927dcd2c7a6727e9b98010e3f3a1643e87267..5cb2142b716ba7f4ea3ff7c2866dd80230ddfafe 100644
(file)
--- a/
wcfsetup/test.php
+++ b/
wcfsetup/test.php
@@
-144,7
+144,8
@@
function getMemoryLimit()
}
function checkMemoryLimit()
{
- return getMemoryLimit() >= 128 * 1024 * 1024;
+ $memoryLimit = getMemoryLimit();
+ return $memoryLimit == -1 || $memoryLimit >= 128 * 1024 * 1024;
}
function formatFilesizeBinary($byte): string
{