File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -161,7 +161,8 @@ private static function hasColorSupport()
161
161
{
162
162
if ('\\' === DIRECTORY_SEPARATOR ) {
163
163
return
164
- '10.0.10586 ' === PHP_WINDOWS_VERSION_MAJOR .'. ' .PHP_WINDOWS_VERSION_MINOR .'. ' .PHP_WINDOWS_VERSION_BUILD
164
+ defined ('STDOUT ' ) && function_exists ('sapi_windows_vt100_support ' ) && sapi_windows_vt100_support (STDOUT )
165
+ || '10.0.10586 ' === PHP_WINDOWS_VERSION_MAJOR .'. ' .PHP_WINDOWS_VERSION_MINOR .'. ' .PHP_WINDOWS_VERSION_BUILD
165
166
|| false !== getenv ('ANSICON ' )
166
167
|| 'ON ' === getenv ('ConEmuANSI ' )
167
168
|| 'xterm ' === getenv ('TERM ' );
Original file line number Diff line number Diff line change @@ -90,7 +90,8 @@ protected function hasColorSupport()
90
90
{
91
91
if (DIRECTORY_SEPARATOR === '\\' ) {
92
92
return
93
- '10.0.10586 ' === PHP_WINDOWS_VERSION_MAJOR .'. ' .PHP_WINDOWS_VERSION_MINOR .'. ' .PHP_WINDOWS_VERSION_BUILD
93
+ function_exists ('sapi_windows_vt100_support ' ) && sapi_windows_vt100_support ($ this ->stream )
94
+ || '10.0.10586 ' === PHP_WINDOWS_VERSION_MAJOR .'. ' .PHP_WINDOWS_VERSION_MINOR .'. ' .PHP_WINDOWS_VERSION_BUILD
94
95
|| false !== getenv ('ANSICON ' )
95
96
|| 'ON ' === getenv ('ConEmuANSI ' )
96
97
|| 'xterm ' === getenv ('TERM ' );
Original file line number Diff line number Diff line change @@ -450,7 +450,8 @@ protected function supportsColors()
450
450
451
451
if ('\\' === DIRECTORY_SEPARATOR ) {
452
452
static ::$ defaultColors = @(
453
- '10.0.10586 ' === PHP_WINDOWS_VERSION_MAJOR .'. ' .PHP_WINDOWS_VERSION_MINOR .'. ' .PHP_WINDOWS_VERSION_BUILD
453
+ function_exists ('sapi_windows_vt100_support ' ) && sapi_windows_vt100_support ($ this ->outputStream )
454
+ || '10.0.10586 ' === PHP_WINDOWS_VERSION_MAJOR .'. ' .PHP_WINDOWS_VERSION_MINOR .'. ' .PHP_WINDOWS_VERSION_BUILD
454
455
|| false !== getenv ('ANSICON ' )
455
456
|| 'ON ' === getenv ('ConEmuANSI ' )
456
457
|| 'xterm ' === getenv ('TERM ' )
You can’t perform that action at this time.
0 commit comments