Currently only php-cgi.exe is bundled with phpdesktop binaries, in the php/
directory. People may run into issues when they try to run php scripts from
command line using php-cgi.exe, as this is a CGI interface for interacting with
web servers and it works differently. You are not supposed to run php scripts
from command line using php-cgi.exe.
If you try to run some php scripts in the background using this code:
$backgroundexec = PHP_BINARY . " " . getcwd() . "\background.php " . $argument;
echo $backgroundexec;
shell_exec($backgroundexec);
It will cause creation of infinite number of cmd.exe and php-cgi.exe processes.