diff --git a/Php72.php b/Php72.php index 7bf96c9..e97b1b2 100644 --- a/Php72.php +++ b/Php72.php @@ -141,6 +141,7 @@ public static function stream_isatty($stream) if ('\\' === \DIRECTORY_SEPARATOR) { $stat = @fstat($stream); + // Check if formatted mode is S_IFCHR return $stat ? 0020000 === ($stat['mode'] & 0170000) : false; }