Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions sapi/cli/tests/php_cli_server.inc
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ function php_cli_server_start(
$php_executable = getenv('TEST_PHP_EXECUTABLE') ?: PHP_BINARY;
$error = null;

// Create dedicated doc root to avoid index.php clashes between tests.
$doc_root = __DIR__ . DIRECTORY_SEPARATOR . basename($_SERVER['PHP_SELF'], '.php');
// Create dedicated doc root to avoid index.php clashes between processes.
$doc_root = __DIR__ . DIRECTORY_SEPARATOR . basename($_SERVER['PHP_SELF'], '.php') . '-' . getmypid();
@mkdir($doc_root);

if ($code) {
Expand Down
2 changes: 1 addition & 1 deletion sapi/cli/tests/php_cli_server_002.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ php_cli_server_start('var_dump($_SERVER["DOCUMENT_ROOT"], $_SERVER["SERVER_SOFTW
var_dump(file_get_contents("http://" . PHP_CLI_SERVER_ADDRESS));
?>
--EXPECTF--
string(%d) "string(%d) "%sphp_cli_server_002"
string(%d) "string(%d) "%sphp_cli_server_002-%d"
string(%d) "PHP/%s (Development Server)"
string(%d) "localhost"
string(%d) "%s"
Expand Down
Loading