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
[6.x] Use of undefined constant STDOUT #30571
Comments
Hey there, Unfortunately we don't support this version anymore. Please check out our support policy on which versions we are currently supporting. Can you please try to upgrade to the latest version and see if your problem persists? We'll help you out and re-open this issue if so. Thanks! |
I created a sample Laravel 6 project and run a simple built in command such as "cache:clear" and the problem persists even in Laravel 6. See attached photo. |
As such, calling console commands from within a web server will not work anymore with this change from Symfony. It's possible to shim the constant, google gives you workarounds for that. Hard to say who's at fault:
The easiest way is simply to not do that. If you have code you need to execute, refactor it so you can call it directly or use a background job 🤷♀️ |
@mfn I see your point.
|
Symfony will fix this bug. I do not know if Laravel has to do anything from their end until they release a bug fix. |
Nothing to be done for Laravel. Users hitting this problem can pin an older Symfony version for that package until this is fixed. |
Description:
Symfony Console 4.3.7 introduced a new method to return whether STDOUT has vt100 support (some Windows 10+ configurations)
When calling from a controller Artisan::call("demo:command");
This method errors with the following "Use of undefined constant STDOUT - assumed 'STDOUT' (this will throw an Error in a future version of PHP)"
Steps To Reproduce:
Call an artisan command from a controller on a Windows 2016 Server and IIS 10.
The text was updated successfully, but these errors were encountered: