-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
[Console] Restore SHELL_VERBOSITY
after a command is ran
#61033
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
base: 7.3
Are you sure you want to change the base?
Conversation
SHELL_VERBOSITY
after a command is ran
if (\function_exists('putenv')) { | ||
@putenv('SHELL_VERBOSITY='.$prevShellVerbosity); | ||
} | ||
$_ENV['SHELL_VERBOSITY'] = $prevShellVerbosity; | ||
$_SERVER['SHELL_VERBOSITY'] = $prevShellVerbosity; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I try to figure out what could cause an issue. Here, we assume that all 3 have the same value initially, so we reset all 3 to the same value.
That works for me.
Looks good. Can you think of a test case that would help avoiding regressions? |
I added tests + rebased + targeted branch 7.3 |
👍 push needed to re-trigger the pipeline |
d53e95b
to
3531989
Compare
All green 🎉 Thanks for the review |
Considereing the following code:
Without this patch,
Main command executed
is. It should be, it's correct. But it's hard to understand. the current $output has already been configured, and it's not silenced by--quiet
yet