Sha256: 3b08d9d286d69ba36fe36fe3f4c7e1696390a89a1bf8466f063d6ff5a8e7b37a
Contents?: true
Size: 689 Bytes
Versions: 7
Compression:
Stored size: 689 Bytes
Contents
<?php namespace Predis\Protocol\Text; use Predis\Helpers; use Predis\Protocol\IResponseHandler; use Predis\Protocol\ProtocolException; use Predis\Network\IConnectionComposable; use Predis\Iterators\MultiBulkResponseSimple; class ResponseMultiBulkStreamHandler implements IResponseHandler { public function handle(IConnectionComposable $connection, $lengthString) { $length = (int) $lengthString; if ($length != $lengthString) { Helpers::onCommunicationException(new ProtocolException( $connection, "Cannot parse '$length' as data length" )); } return new MultiBulkResponseSimple($connection, $length); } }
Version data entries
7 entries across 7 versions & 1 rubygems