stream_bucket_make_writeable

Returns a bucket object from the brigade to operate on

Description

objectnull stream_bucket_make_writeable(resource $brigade)

This function is called whenever there is the need to access and operate on the content contains in a brigade. It is typically called from php_user_filter::filter.

Parameters

brigade

The brigade to return a bucket object from.

Return Values

Returns a bucket object with the properties listed below or null.

data (string)

data bucket The current string in the bucket.

datalen (integer)

datalen bucket The length of the string in the bucket.

See Also

  • stream_bucket_append
  • stream_bucket_prepend