Skip to content

Commit 65e2967

Browse files
committed
support sapi_windows_vt100_support for php 7.2+
1 parent 33524c3 commit 65e2967

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

DeprecationErrorHandler.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,8 @@ private static function hasColorSupport()
161161
{
162162
if ('\\' === DIRECTORY_SEPARATOR) {
163163
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
165166
|| false !== getenv('ANSICON')
166167
|| 'ON' === getenv('ConEmuANSI')
167168
|| 'xterm' === getenv('TERM');

0 commit comments

Comments
 (0)