It returns SUCCESS if the stream can be converted into the form requested, or FAILURE if the conversion cannot be performed.
This function is equivalent to calling php_stream_cast() with ret set to NULL and flags set to 0. It returns SUCCESS if the stream can be converted into the form requested, or FAILURE if the conversion cannot be performed.