Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<stream_bucket_appendstream_bucket_new>
^Stream FunctionsLast updated: Mon, 26 Oct 2026

stream_bucket_make_writeable

(PHP 5, PHP 7, PHP 8)

stream_bucket_make_writeable — Returns a bucket object from the brigade to operate on

Description

function stream_bucket_make_writeable(resource $brigade): ?StreamBucket

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 or null.

Changelog

Version Description
8.4.0 This function returns a StreamBucket instance now; previously, an stdClass was returned.

See Also


<stream_bucket_appendstream_bucket_new>
^Stream FunctionsLast updated: Mon, 26 Oct 2026