You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
seems the line 94 makes use of stream_isatty which will always return false (because of the condition at 89). Also, it lacks check if the function exists causes a fatal error on PHP's without the stream support.
if (\function_exists('stream_isatty') && @\stream_isatty($fileDescriptor)) {
returntrue;
}
// Check if formatted mode is S_IFCHR
if (\function_exists('fstat') && @\stream_isatty($fileDescriptor)) {
$stat = @\fstat(\STDOUT);
The text was updated successfully, but these errors were encountered:
sebastianbergmann
changed the title
use of stream_isatty() seems as a typo
Wrong usage of stream_isatty(), fstat() used without checking whether the function is available
Apr 14, 2022
seems the line
94
makes use ofstream_isatty
which will always returnfalse
(because of the condition at89
). Also, it lacks check if the function exists causes a fatal error on PHP's without the stream support.environment/src/Console.php
Lines 89 to 95 in c39c1db
The text was updated successfully, but these errors were encountered: