diff --git a/language-snippets.ent b/language-snippets.ent index 26bb4819a0ed..8a8cc544e56e 100644 --- a/language-snippets.ent +++ b/language-snippets.ent @@ -2675,6 +2675,9 @@ objects. Otherwise, a PharException will be thrown.streamWrapper::$context property is updated if a valid context is passed to the caller function.'> +bucket expects a StreamBucket instance now; previously, an stdClass was expected.'> +StreamBucket instance now; previously, an stdClass was returned.'> + voidstream_bucket_append resourcebrigade - objectbucket + StreamBucketbucket &warn.undocumented.func; - + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + + 8.4.0 + &stream.bucket.param; + + + + + + + + + The StreamBucket class + StreamBucket + + + +
+ &reftitle.intro; + + A stream bucket is a chunk of a stream which can be extracted from bucket brigades. + +
+ +
+ &reftitle.classsynopsis; + + + + final + StreamBucket + + + &Properties; + + public + readonly + resource + bucket + + + public + readonly + string + data + + + public + readonly + int + datalen + + + public + readonly + int + dataLength + + +
+ +
+ &reftitle.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. + + + +
+ +
+ &reftitle.seealso; + + stream_bucket_new + stream_bucket_append + stream_bucket_prepend + stream_bucket_make_writeable + +
+ +
+ + &reference.stream.entities.streambucket; + +
+ diff --git a/reference/stream/versions.xml b/reference/stream/versions.xml index bf32d0b61cc9..337b416ffa7b 100644 --- a/reference/stream/versions.xml +++ b/reference/stream/versions.xml @@ -4,6 +4,7 @@ Do NOT translate this file --> +