« streamWrapper::stream_seek
streamWrapper::stream_stat »

streamWrapper::stream_set_option

(PHP 5 >= 5.3.0, PHP 7, PHP 8)

streamWrapper::stream_set_option — ストリームのオプションを変更する

説明

public function streamWrapper::stream_set_option(int $option, int $arg1, int $arg2): bool

このメソッドは、ストリームのオプションを設定する際にコールされます。

パラメータ

option

以下のいずれか。

arg1

option の値に応じて、以下の内容となります。

arg2

option の値に応じて、以下の内容となります。

戻り値

成功した場合に true を、失敗した場合に false を返します。 option が実装されていない場合は false を返さなければなりません。

参考

関連キーワード:
stream   option   ストリーム   streamWrapper   モード   バッファ   ブロック   buffer   要求   タイムアウト   blocking   timeout   write   秒数   seek   stat   read   マイクロ   成功   実装   参考   解除   書き込み   リング
関連する関数・ページ:
function.stream-set-blocking   streamwrapper.stream-seek   streamwrapper.stream-tell   streamwrapper.stream-read   function.stream-set-read-buffer   class.streamwrapper