Suppress warning from sapi_windows_vt100_support on stream other than STDIO

This commit is contained in:
Adam Klvač 2018-02-18 14:02:56 +01:00
parent 233774c929
commit 43f942159d
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ class StreamOutput extends Output
{
if (DIRECTORY_SEPARATOR === '\\') {
return
function_exists('sapi_windows_vt100_support') && sapi_windows_vt100_support($this->stream)
function_exists('sapi_windows_vt100_support') && @sapi_windows_vt100_support($this->stream)
|| '10.0.10586' === PHP_WINDOWS_VERSION_MAJOR.'.'.PHP_WINDOWS_VERSION_MINOR.'.'.PHP_WINDOWS_VERSION_BUILD
|| false !== getenv('ANSICON')
|| 'ON' === getenv('ConEmuANSI')