Created
April 10, 2014 09:50
-
-
Save Taluu/10363032 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Symfony\Component\Process\ProcessBuilder, | |
Symfony\Component\Process\ProcessUtils; | |
$builder = new ProcessBuilder; | |
$builder->setPrefix(['--argument-name', 'argument value']); | |
// after the ProcessUtils | |
$cmd = '"--argument-name" "argument value"'; | |
// Why ? Because escapeshellarg escapes everything, no questions asked... Even the --argument-names (and -a) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment