-
Notifications
You must be signed in to change notification settings - Fork 177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(Process): Convert command to array format #174
Conversation
Released v1.6.3 with this. |
https://symfony.com/doc/current/components/process.html#using-a-prepared-command-line I think it would be more appropriate to use |
@crynobone |
@Quynh-Nguyen I just happen to have faced with the same issue on my project using symfony/process and converting it to array doesn't work. use Symfony\Component\Process\Process;
require "vendor/autoload.php";
$command = "/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --version";
$script = explode(' ', $command);
$process = new Process($script);
$process->mustRun();
I only manage to solve the issue by changing it to |
@crynobone
|
Urgh, I'll get that fixed in a bit. |
@driesvints |
$process = new Process(["/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome", "--version"]);
$process->mustRun(); Trying to be smart and do it manually also return the same error.
|
@crynobone @Quynh-Nguyen I released v1.6.4 which used |
@crynobone thanks for verifying 👍 |
When upgrade dependency symfony/process to version ^5.0
We will got this error:
So this pull request for resolve this issue.
I was tested on my local.