stream_set_chunk_size

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

stream_set_chunk_sizeストリームのチャンクサイズを設定する

説明

stream_set_chunk_size(resource $stream, int $size): int

ストリームのチャンクサイズを設定します。

パラメータ

stream

対象のストリーム。

size

設定したいチャンクサイズ。

返り値

成功した場合に、変更前の設定値を返します。

size が 1 より小さいか、あるいは PHP_INT_MAX より大きい場合には false を返します。

エラー / 例外

size が 1 より小さいか、あるいは PHP_INT_MAX より大きい場合には E_WARNING レベルのエラーが発生します。

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top