Gen. partnerAlgotech

PHP function stream_set_chunk_size()

|
September 11, 2019

PHP > 5.4.0
Set the stream chunk size.

Parameters

Parameter Data type Default value Note
$fp resource not
$chunk_size int not

Return values

int

Returns the previous chunk size on success.
Will return FALSE if chunk_size is less than 1 or greater than PHP_INT_MAX.

Additional resources

Official documentation for stream-set-chunk-size

Loading comments...

Stay in the loop

Subscribe to our newsletter and get the latest cybersecurity news delivered straight to your inbox.

Your data is safe. You can unsubscribe from the newsletter at any time.