ちゅうい never call this function with an origstream that is reference by a file pointer in a php script this function may cause the underlying stream to be closed which could cause a crash when the script next accesses the file pointer 