public function S3fsStream::stream_set_option in S3 File System 4.0.x
Same name and namespace in other branches
- 8.3 src/StreamWrapper/S3fsStream.php \Drupal\s3fs\StreamWrapper\S3fsStream::stream_set_option()
- 8.2 src/StreamWrapper/S3fsStream.php \Drupal\s3fs\StreamWrapper\S3fsStream::stream_set_option()
Change stream options.
This method is called to set options on the stream.
Parameters
int $option: One of:
- STREAM_OPTION_BLOCKING: The method was called in response to stream_set_blocking().
- STREAM_OPTION_READ_TIMEOUT: The method was called in response to stream_set_timeout().
- STREAM_OPTION_WRITE_BUFFER: The method was called in response to stream_set_write_buffer().
int $arg1: If option is:
- STREAM_OPTION_BLOCKING: The requested blocking mode:
- 1 means blocking.
- 0 means not blocking.
- STREAM_OPTION_READ_TIMEOUT: The timeout in seconds.
- STREAM_OPTION_WRITE_BUFFER: The buffer mode, STREAM_BUFFER_NONE or STREAM_BUFFER_FULL.
int $arg2: If option is:
- STREAM_OPTION_BLOCKING: This option is not set.
- STREAM_OPTION_READ_TIMEOUT: The timeout in microseconds.
- STREAM_OPTION_WRITE_BUFFER: The requested buffer size.
Return value
bool TRUE on success, FALSE otherwise. If $option is not implemented, FALSE should be returned.
Overrides PhpStreamWrapperInterface::stream_set_option
File
- src/
StreamWrapper/ S3fsStream.php, line 801
Class
- S3fsStream
- Defines a Drupal s3 (s3://) stream wrapper class.
Namespace
Drupal\s3fs\StreamWrapperCode
public function stream_set_option($option, $arg1, $arg2) {
// phpcs:enable
trigger_error('stream_set_option() not supported for local file based stream wrappers', E_USER_WARNING);
return FALSE;
}