Skip to content

Commit a1f8187

Browse files
author
Michael Fero
committed
Fixing PHP standalone webserver for Travis
1 parent 4fc2a46 commit a1f8187

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

features/bootstrap/FeatureContext.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -304,9 +304,9 @@ private function execute(array $env = array())
304304
private function startWebServer()
305305
{
306306
$this->webServerURL = 'http://127.0.0.1:10000';
307-
$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;
307+
$command = sprintf('exec %s -S "%s"', $this->phpBin, '127.0.0.1:10000');
308+
if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
309+
$command = sprintf('%s -S "%s"', $this->phpBin, '127.0.0.1:10000');
310310
}
311311
if ($this->phpBinOptions) {
312312
$command = sprintf("%s %s", $command, $this->phpBinOptions);

0 commit comments

Comments
 (0)