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
 
<streamWrapper::url_statStream Functions>
^StreamsLast updated: Mon, 26 Oct 2026

The StreamBucket class

(PHP 8 >= 8.4.0)

Introduction

A stream bucket is a chunk of a stream which can be extracted from bucket brigades.

Class synopsis

final class StreamBucket {
/* Properties */
public readonly resource $bucket;
public readonly string $data;
public readonly int $datalen;
public readonly int $dataLength;
}

Properties

resource bucket

A userfilter.bucket resource.

string data

The current string in the bucket.

int datalen

The length of the string in the bucket. Deprecated as of PHP 8.4 in favor of StreamBucket::$dataLength.

int dataLength

The length of the string in the bucket.


<streamWrapper::url_statStream Functions>
^StreamsLast updated: Mon, 26 Oct 2026