Gen. partnerAlgotech

PHP function stream_set_write_buffer()

Sets file buffering on the given stream

|
September 11, 2019

Availability in versions: PHP 4.3.0

Sets file buffering on the given stream

Parameters

Parameter Data type Default value Note
$stream resource not The file pointer.
$buffer int not The number of bytes to buffer. If buffer is 0 then write operations are unbuffered. This ensures that all writes with fwrite are completed before other processes are allowed to write to that output stream.

Return values

int

0 on success, or EOF if the request cannot be honored.

Other resources

Official stream-set-write-buffer documentation

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.