diff --git a/src/XdebugHandler.php b/src/XdebugHandler.php index 98fed31..2831fbc 100644 --- a/src/XdebugHandler.php +++ b/src/XdebugHandler.php @@ -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) {