Skip to content

Commit

Permalink
Support php binary path with whitespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
jkrzefski authored Dec 15, 2023
1 parent aef0a61 commit 39de08c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/XdebugHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ private function writeTmpIni(array $iniFiles, string $tmpDir, ?string &$error):
*/
private function getCommand(): array
{
$php = [PHP_BINARY];
$php = [\escapeshellarg(PHP_BINARY)];
$args = array_slice($_SERVER['argv'], 1);

if (!$this->persistent) {
Expand Down

0 comments on commit 39de08c

Please sign in to comment.