PHP マニュアル
前のページ |  | 次のページ

# php_stream_can_cast

(no version information, might be only in CVS)

php_stream_can_cast -- ストリームがFILE*またはソケットのような他の形式に変換できるかどうかを 調べる

## 説明

int php_stream_can_cast ( php_stream * stream, int castas)

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.

> 注意 Although this function will not perform the conversion, some internal stream state *might* be changed by this call.

> 注意 You must explicity compare the return value of this function with one of the constants, as described in php_stream_cast().

See also php_stream_cast() and php_stream_is().

前のページ | ホーム | 次のページ
php_stream_cast | 上に戻る | php_stream_is_persistent