src/ProcessPoolRequest.php
/**
	 * Send a request
	 *
	 * @param string $data Data to send
	 * @throws ProcessPoolException
	 */
Send a request
@param string $data Data to send
@throws ProcessPoolException
Send a request @param string $data Data to send @throws ProcessPoolException
public function sendRequest(string $data): void
	{
		if ($this->process === null)
			throw new ProcessPoolResourceFailedException();
		fwrite($this->pipes[0], ProcessPoolMessageTypes::MSG_START_REQUEST . ';' . strlen($data) . PHP_EOL . $data);
		fflush($this->pipes[0]);
	}
public function sendRequest ( string $ data ) : void { if ( $ this -> process === null ) throw new ProcessPoolResourceFailedException ( ) ; fwrite ( $ this -> pipes [ 0 ] , ProcessPoolMessageTypes :: MSG_START_REQUEST . ';' . strlen ( $ data ) . PHP_EOL . $ data ) ; fflush ( $ this -> pipes [ 0 ] ) ; }
Send a request
 @param string $data Data to send
 @throws ProcessPoolException
Send a request @param string $data Data to send @throws ProcessPoolException
// Write data