protected static function spawnProcess(string $cmd, array $spec, ?array & $pipes, ?string $dir = null, ?array $env = null, bool $bypassShell = false)
    {
        return @\proc_open($cmd, $spec, $pipes, $dir, $env, $bypassShell ? [
            'bypass_shell' => true
        ] : []);
    }
protected static function spawnProcess(string $cmd, array $spec, ?array & $pipes, ?string $dir = null, ?array $env = null, bool $bypassShell = false)
    {
        return @\proc_open($cmd, $spec, $pipes, $dir, $env, $bypassShell ? [
            'bypass_shell' => true
        ] : []);
    }
protected static function spawnProcess ( string $ cmd , array $ spec , ? array & $ pipes , ? string $ dir = null , ? array $ env = null , bool $ bypassShell = false ) { return @ \ proc_open ( $ cmd , $ spec , $ pipes , $ dir , $ env , $ bypassShell ? [ 'bypass_shell' => true ] : [ ] ) ; }
Spawn a new process.

@param string $cmd Command to be executed.
@param array $spec IO pipe specification.
@param array $pipes Will be populated with pipes created for the process.
@param string $dir Working directory to be used by the spawned process.
@param array $env Environment variables to be passed to the process.
@return resource Process resource or false in case of an error.
Spawn a new process .