8000 bug #25624 [WebServerBundle] Fix escaping of php binary with argument… · dunglas/symfony@f20515a · GitHub 8000
[go: up one dir, main page]

Skip to content

Commit f20515a

Browse files
bug symfony#25624 [WebServerBundle] Fix escaping of php binary with arguments (nicolas-grekas)
This PR was merged into the 3.3 branch. Discussion ---------- [WebServerBundle] Fix escaping of php binary with arguments | Q | A | ------------- | --- | Branch? | 3.3 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Not really needed in practice, yet more correct, and will open some improvements in PhpExecutableFinder for master. Commits ------- 6629ae5 [WebServerBundle] Fix escaping of php binary with arguments
2 parents 67ceb50 + 6629ae5 commit f20515a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Bundle/WebServerBundle/WebServer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,11 @@ public function isRunning($pidFile = null)
146146
private function createServerProcess(WebServerConfig $config)
147147
{
148148
$finder = new PhpExecutableFinder();
149-
if (false === $binary = $finder->find()) {
149+
if (false === $binary = $finder->find(false)) {
150150
throw new \RuntimeException('Unable to find the PHP binary.');
151151
}
152152

153-
$process = new Process(array($binary, '-dvariables_order=EGPCS', '-S', $config->getAddress(), $config->getRouter()));
153+
$process = new Process(array_merge(array($binary), $finder->findArguments(), array('-dvariables_order=EGPCS', '-S', $config->getAddress(), $config->getRouter())));
154154
$process->setWorkingDirectory($config->getDocumentRoot());
155155
$process->setTimeout(null);
156156

0 commit comments

Comments
 (0)
0