39 if (
false ===
$php = $executableFinder->find()) {
42 if (
'phpdbg' === PHP_SAPI) {
43 $file = tempnam(sys_get_temp_dir(),
'dbg');
44 file_put_contents(
$file, $script);
45 register_shutdown_function(
'unlink',
$file);
46 $php .=
' '.ProcessUtils::escapeArgument(
$file);
49 if (
'\\' !== DIRECTORY_SEPARATOR && null !==
$php) {
start(callable $callback=null)
{}
__construct($script, $cwd=null, array $env=null, $timeout=60, array $options=array())
Constructor.
An executable finder specifically designed for the PHP executable.
setCommandLine($commandline)
Sets the command line to be executed.
Create styles array
The data for the language used.
getCommandLine()
Gets the command line to be executed.
Process is a thin wrapper around proc_* functions to easily start independent PHP processes...
if(!file_exists("$old.txt")) if($old===$new) if(file_exists("$new.txt")) $file
setPhpBinary($php)
Sets the path to the PHP binary to use.
PhpProcess runs a PHP script in an independent process.