In stream_read() bytes_range includes borders