1
0
Fork 0

Fix Windows anniversary update change

pull/5580/head
johnstevenson 2016-09-03 18:50:11 +01:00
parent cfaa122ade
commit 89d6e6f0bd
1 changed files with 2 additions and 3 deletions

View File

@ -248,9 +248,8 @@ class XdebugHandler
$result = ($stat['mode'] & 0170000) === 0020000;
}
if ($result && defined('PHP_WINDOWS_VERSION_BUILD')) {
$result = 0 >= version_compare('10.0.10586', PHP_WINDOWS_VERSION_MAJOR.'.'.PHP_WINDOWS_VERSION_MINOR.'.'.PHP_WINDOWS_VERSION_BUILD)
|| false !== getenv('ANSICON')
if (defined('PHP_WINDOWS_VERSION_BUILD') && $result) {
$result = false !== getenv('ANSICON')
|| 'ON' === getenv('ConEmuANSI')
|| 'xterm' === getenv('TERM');
}