If successful, newstream is always set to the stream that is valid to use, even if the original stream was seekable.
php_stream_make_seekable() checks if origstream is seekable. If it is not, it will copy the data into a new temporary stream. If successful, newstream is always set to the stream that is valid to use, even if the original stream was seekable.