Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit93c8397

Browse files
committed
[ErrorHandler] Do not call xdebug_get_function_stack() with xdebug >= 3.0 when not in develop mode
1 parent84f0b88 commit93c8397

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ public function __construct(string $message, int $code, array $error, ?int $trac
3333
}
3434
}
3535
}elseif (null !==$traceOffset) {
36-
if (\function_exists('xdebug_get_function_stack') &&$trace = @xdebug_get_function_stack()) {
36+
if (\function_exists('xdebug_get_function_stack') &&\in_array(ini_get('xdebug.mode'), ['develop',false],true)) {
37+
$trace =xdebug_get_function_stack();
3738
if (0 <$traceOffset) {
3839
array_splice($trace, -$traceOffset);
3940
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp