6

I am getting exit code -1 from the Symfony process command on some machines, while exactly the same code returns exit code 0 as excepted on others. In both cases the given command is executed successfully regarding its output.

Running the same command line from shell gives the correct exit code (0). I produced a small test case to reproduce the issue:

use Symfony\Component\Process\Process;
$process = new Process('./console');
$process->run();
echo $process->getExitCode();

Any ideas on how to diagnose this?

luchaninov
  • 6,792
  • 6
  • 60
  • 75
Bret R. Zaun
  • 103
  • 1
  • 6

0 Answers0