fix include paths for Windows.

This commit is contained in:
Ad Schellevis 2018-03-06 19:54:51 +01:00
parent a4657bd1e7
commit 013e4efa56
1 changed files with 6 additions and 1 deletions

View File

@ -56,7 +56,12 @@ foreach ($conf->application->contrib as $include) {
$include_paths[] = trim($include);
}
}
$run_command[] = '-d include_path=".:'.implode(':', $include_paths).'"';
if (PHP_OS == 'WINNT') {
// include paths on windows differ
$run_command[] = '-d include_path=".;' . implode(';', $include_paths) . '"';
} else {
$run_command[] = '-d include_path=".:' . implode(':', $include_paths) . '"';
}
// listen to localhost
$run_command[] = "-S localhost:8000";