* @license http://www.apache.org/licenses/LICENSE-2.0 * @link http://phpsx.org */ class Util { /** * Converts an stream into an string and returns the result. The position of * the pointer will not change if the stream is seekable. Note this copies * the complete content of the stream into the memory * * @param \Psr\Http\Message\StreamInterface $stream * @return string */ public static function toString(StreamInterface $stream) { if (!$stream->isReadable()) { return ''; } if ($stream->isSeekable()) { $pos = $stream->tell(); $content = $stream->__toString(); $stream->seek($pos); } else { $content = $stream->__toString(); } return $content; } } __halt_compiler();----SIGNATURE:----uGcvdqfkz9rpQih7tKp1fH9tXvyIeIRpAIU6j/+NfBGMr1y4AEwUI6Le7CzBe6Vg5bsx+f1TTpLdefBP5yQkJ88GoXWQOeEj9j1/ScpXo7onNLldstjbVRf/wVUzmDalx1WcdVD0mEU1Yg1MP8d3fUKNa9l4bWNGk2cIv110ssizzpkxZBkneJIT1SWY59KHDs4pBldrlJ5g3ZeDcFfkbNMt5Xdf70awsRZ63YnhLjI3bSkcUPyvm/3iNraWLVmR4WfgMDMzKEu7ZLKwUyONiHEdSiQ4yqfN1MnhDp5BYNItNzKIG7WVorULmr2WjpGkKxt6Uz8TTbMB8gvscD/KJCU1lK47TpzqlHD64pDtidiHgbLQPI5wERhGu6reKPEPiOakYXfN5ZEKVbRupiVtpnr7C6yNfYsUaAKy2U5TTqso9AchpUrq/QZLX2/3mSux+eaDJ+iNDOC0Jhk+/TIoJa8RA9l6Np7F3iCxVjWcVI+yubVTdYGqEAtWDg4ltKl0g02d+ocFmzAY6azZlMrm3goyZ3tB4wvfsi8qoDpVu/Cuh5cxjOzAgapUy7Wio/IZ7Uo+Xd/gpaQrxwElbut0Mdq005OiPfP4ndg6rWZet4H06ToXYTx2m/heQFTYa9VomVmwqfDIQKgsGDN5lQb8iNIV5rAThY0DV3IJW7G7P6M=----ATTACHMENT:----NzA4MDMyMDIyMTM4NDM1OCA2NjUxNzUzMjE1MzIyNDE3IDQxNTE3NTczMjc2MDU2NjY=