/** * Read from stream. * * This method is called in response to fread() and fgets(). * * Note: Remember to update the read/write position of the stream (by the * number of bytes that were successfully read). * * @param integer $count How many bytes of data from the current position should be returned. * @return string If there are less than count bytes available, return as many as are available. If no more data is available, return either FALSE or an empty string. */ public function stream_read($count) { return $this->streamWrapper->read($count); }