['pipe', 'w'], 2 => ['pipe', 'w']], $pipes); $stdout = stream_get_contents($pipes[1]); $stderr = stream_get_contents($pipes[2]); foreach ($pipes as $pipe) { fclose($pipe); } return trim(proc_close($resource)) !== 127; } /** * Create task * * @param TaskAbstract * * @return void * * @since 1.0.0 */ public function create(TaskAbstract $task) /* : void */ { $this->run($task->getCommand()); } }