array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'de', ), 'this' => array ( 0 => 'function.stream-set-chunk-size.php', 1 => 'stream_set_chunk_size', ), 'up' => array ( 0 => 'ref.stream.php', 1 => 'Stream-Funktionen', ), 'prev' => array ( 0 => 'function.stream-set-blocking.php', 1 => 'stream_set_blocking', ), 'next' => array ( 0 => 'function.stream-set-read-buffer.php', 1 => 'stream_set_read_buffer', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/stream/functions/stream-set-chunk-size.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 5 >= 5.4.0, PHP 7, PHP 8)
stream_set_chunk_size — Set the stream chunk size
stream
The target stream.
size
The desired new chunk size.
Returns the previous chunk size on success.
A ValueError is thrown if size
is less than 1 or greater than PHP_INT_MAX
.
Version | Beschreibung |
---|---|
8.0.0 |
A ValueError is now thrown if
size is less than 1 or greater than
PHP_INT_MAX . Previously, an
E_WARNING level error was emitted and false was
returned.
|