We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ad0a81 commit 787df82Copy full SHA for 787df82
features/bootstrap/FeatureContext.php
@@ -304,7 +304,10 @@ private function execute(array $env = array())
304
private function startWebServer()
305
{
306
$this->webServerURL = 'http://127.0.0.1:10000';
307
- $command = sprintf('exec %s -S "%s"', $this->phpBin, '127.0.0.1:10000');
+ $command = sprintf('%s -S "%s"', $this->phpBin, '127.0.0.1:10000');
308
+ if (!strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
309
+ $command = 'exec' . $command;
310
+ }
311
if ($this->phpBinOptions) {
312
$command = sprintf("%s %s", $command, $this->phpBinOptions);
313
}
0 commit comments