stream_set_chunk_size

(PHP 5 >= 5.4.0, PHP 7)
Set the stream chunk size
int stream_set_chunk_size ( resource $fp, int $chunk_size )

Set the stream chunk size.

Parameters:
fp

The target stream.

chunk_size

The desired new chunk size.

Returns:

Returns the previous chunk size on success.

Will return FALSE if chunk_size is less than 1 or greater than PHP_INT_MAX.

Exception:

Will emit an E_WARNING level error if chunk_size is less than 1 or greater than PHP_INT_MAX.

doc_php
2016-02-24 16:06:58
Comments
Leave a Comment

Please login to continue.