Skip to content

Commit cf88764

Browse files
Merge pull request #129 from johnstevenson/unc-paths
Do not restart with cmd.exe if cwd is a UNC path
2 parents 31d5769 + 718af7e commit cf88764

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/continuous-integration.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,7 @@ jobs:
6464
run: composer update ${{ env.COMPOSER_FLAGS }}
6565

6666
- name: Run tests
67+
# Temp fix. PHP 8.1 needs phpunit 9.5.5+
68+
env:
69+
SYMFONY_DEPRECATIONS_HELPER: disabled=1
6770
run: vendor/bin/simple-phpunit --verbose

src/XdebugHandler.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -598,6 +598,15 @@ private function checkConfiguration(&$info)
598598
}
599599
}
600600

601+
602+
$workingDir = getcwd();
603+
if (0 === strpos($workingDir, '\\\\')) {
604+
if (defined('PHP_WINDOWS_VERSION_BUILD') && PHP_VERSION_ID < 70400) {
605+
$info = 'cmd.exe does not support UNC paths: '.$workingDir;
606+
return false;
607+
}
608+
}
609+
601610
return true;
602611
}
603612

0 commit comments

Comments
 (0)