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_make_writeablestream_bucket_prepend>
^Stream FunctionsLast updated: Mon, 26 Oct 2026

stream_bucket_new

(PHP 5, PHP 7, PHP 8)

stream_bucket_new — Create a new bucket for use on the current stream

Description

function stream_bucket_new(resource $stream, string $buffer): StreamBucket
Warning

This function is currently not documented; only its argument list is available.

Changelog

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

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