src/ProcessPoolRequest.php
/**
	 * Get response from pipe
	 *
	 * @param int $pipeIdx Pipe index
	 *
	 * @return string Response
	 * @throws ProcessPoolException
	 */
Get response from pipe
@param int $pipeIdx Pipe index

@return string Response
@throws ProcessPoolException
Get response from pipe @param int $pipeIdx Pipe index @return string Response @throws ProcessPoolException
private function _getResponseFromPipe(int $pipeIdx): string
	{
		if ($this->process === null)
			throw new ProcessPoolResourceFailedException();
		$input = fread($this->pipes[$pipeIdx], 1024);
		if ($input === false)
		{
			$this->failed = true;
			throw new ProcessPoolUnexpectedEOFException();
		}
		return $input;
	}
private function _getResponseFromPipe ( int $ pipeIdx ) : string { if ( $ this -> process === null ) throw new ProcessPoolResourceFailedException ( ) ; $ input = fread ( $ this -> pipes [ $ pipeIdx ] , 1024 ) ; if ( $ input === false ) { $ this -> failed = true ; throw new ProcessPoolUnexpectedEOFException ( ) ; } return $ input ; }
Get response from pipe
 @param int $pipeIdx Pipe index
Get response from pipe @param int $pipeIdx Pipe index
// Read some data // Don't let the process be reuse