Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit cbac313

Browse filesBrowse 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 f86c557 commit cbac313
Copy full SHA for cbac313

File tree

Expand file treeCollapse file tree

2 files changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+2
-2
lines changed

‎src/Symfony/Component/Debug/ErrorHandler.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Debug/ErrorHandler.php
+1-1Lines 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

‎src/Symfony/Component/ErrorHandler/ErrorHandler.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/ErrorHandler/ErrorHandler.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ class ErrorHandler
111111
public static function register(self $handler = null, bool $replace = true): self
112112
{
113113
if (null === self::$reservedMemory) {
114-
self::$reservedMemory = str_repeat('x', 10240);
114+
self::$reservedMemory = str_repeat('x', 32768);
115115
register_shutdown_function(__CLASS__.'::handleFatalError');
116116
}
117117

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.