(PHP 5, PHP 7, PHP 8)
stream_bucket_new — Create a new bucket for use on the current stream
stream_bucket_new(resource $stream, string $buffer): StreamBucket
This function is currently not documented; only its argument list is available.
| Version | Description |
|---|---|
| 8.4.0 | This function returns a StreamBucket instance now; previously, an stdClass was returned. |
© 1997–2025 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/function.stream-bucket-new.php