8000 [Console] Suppress `proc_open` errors within `Terminal::readFromProcess` by fritzmg · Pull Request #58332 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Console] Suppress proc_open errors within Terminal::readFromProcess #58332

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
suppress proc_open errors
  • Loading branch information
fritzmg committed Sep 20, 2024
commit 575249a3431ca4547aab6188f1cf1cc51b4a5e47
2 changes: 1 addition & 1 deletion src/Symfony/Component/Console/Terminal.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ private static function readFromProcess(string $command): ?string

$cp = \function_exists('sapi_windows_cp_set') ? sapi_windows_cp_get() : 0;

if (!$process = proc_open($command, $descriptorspec, $pipes, null, null, ['suppress_errors' => true])) {
if (!$process = @proc_open($command, $descriptorspec, $pipes, null, null, ['suppress_errors' => true])) {
return null;
}

Expand Down
Loading
0