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 