Skip to content
This repository was archived by the owner on Dec 9, 2023. It is now read-only.

Commit 346e150

Browse files
committed
Increased the reserved memory from 10k to 32k
The ErrorHandler's job includes handling out of memory (OOM) exceptions, therefore it is imoprtant that that feature works. In the current state, when handling OOM exceptions, the error handler produces an OOM error itself, because the old 10k reserve is apparently not enough anymore. To mitigate that, the reserved memory gets bumped to 32k (which is enouogh).
1 parent 43ede43 commit 346e150

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ErrorHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ class ErrorHandler
119119
public static function register(self $handler = null, $replace = true)
120120
{
121121
if (null === self::$reservedMemory) {
122-
self::$reservedMemory = str_repeat('x', 10240);
122+
self::$reservedMemory = str_repeat('x', 32768);
123123
register_shutdown_function(__CLASS__.'::handleFatalError');
124124
}
125125

0 commit comments

Comments
 (0)