8000 [Console] Fix restoring exception handler · symfony/symfony@2489487 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2489487

Browse files
[Console] Fix restoring exception handler
1 parent 7625c77 commit 2489487

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Symfony/Component/Console/Application.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,9 @@ public function run(InputInterface $input = null, OutputInterface $output = null
164164
}
165165
} finally {
166166
if (!$phpHandler) {
167+
if (set_exception_handler($renderException) === $renderException) {
168+
restore_exception_handler();
169+
}
167170
restore_exception_handler();
168171
} elseif (!$debugHandler) {
169172
$phpHandler[0]->setExceptionHandler(null);

0 commit comments

Comments
 (0)
0