private function createProcess()
    {
        $descriptorSpec = [
            ['pipe', 'r'], // stdin
            ['pipe', 'w'], // stdout
            ['pipe', 'r']  // stderr
        ];

        $this->process = proc_open($this->cmd, $descriptorSpec, $this->pipes, $this->cwd);

        if (!is_resource($this->process)) {
            throw new \RuntimeException('Could not create the process.');
        }
    }
private function createProcess()
    {
        $descriptorSpec = [
            ['pipe', 'r'], // stdin
            ['pipe', 'w'], // stdout
            ['pipe', 'r']  // stderr
        ];

        $this->process = proc_open($this->cmd, $descriptorSpec, $this->pipes, $this->cwd);

        if (!is_resource($this->process)) {
            throw new \RuntimeException('Could not create the process.');
        }
    }
private function createProcess ( ) { $ descriptorSpec = [ [ 'pipe' , 'r' ] , // stdin [ 'pipe' , 'w' ] , // stdout [ 'pipe' , 'r' ] // stderr ] ; $ this -> process = proc_open ( $ this -> cmd , $ descriptorSpec , $ this -> pipes , $ this -> cwd ) ; if ( ! is_resource ( $ this -> process ) ) { throw new \ RuntimeException ( 'Could not create the process.' ) ; } }
Create the process.

@return null
@throws \RuntimeException If the process can not be created.
Create the process .