CakeFest 2024: The Official CakePHP Conference

stream_bucket_make_writeable

(PHP 5, PHP 7, PHP 8)

stream_bucket_make_writeable 操作する brigade から bucket オブジェクトを返す

説明

stream_bucket_make_writeable(resource $brigade): ?object

brigade に含まれる内容にアクセスしたり、 操作したりする場合には、常にこの関数がコールされます。 通常は、php_user_filter::filter() からコールされます。

パラメータ

brigade

bucket オブジェクトを返す brigade。

戻り値

以下に示すプロパティを持つ bucket オブジェクトを返すか、 null を返します。

data (string)

data bucket bucket に含まれる現在の文字列。

datalen (integer)

datalen bucket bucket に含まれる文字列の長さ。

参考

add a note

User Contributed Notes 1 note

up
0
Anonymous
1 year ago
the object $bucket which is returned also includes a third parameter, $bucket->bucket, which is a reference to the resource
To Top