Skip to content

Commit 5d83ca9

Browse files
authored
Merge pull request symfony#31 from Pierstoval/docroot
Explicitly add document root to PHP's web server command line
2 parents d638f38 + d1ed2ae commit 5d83ca9

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/ProcessManager/WebServerManager.php

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,17 @@ public function __construct(string $documentRoot, string $hostname, int $port)
4545
}
4646

4747
$this->process = new Process(
48-
\array_merge([$binary], $finder->findArguments(), ['-dvariables_order=EGPCS', '-S', \sprintf('%s:%d', $this->hostname, $this->port)]),
48+
\array_merge(
49+
[$binary],
50+
$finder->findArguments(),
51+
[
52+
'-dvariables_order=EGPCS',
53+
'-S',
54+
\sprintf('%s:%d', $this->hostname, $this->port),
55+
'-t',
56+
$documentRoot,
57+
]
58+
),
4959
$documentRoot,
5060
null,
5161
null,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy