function PharStreamWrapper::stream_set_option

Parameters

int $option:

int $arg1:

int $arg2:

Return value

bool

File

misc/typo3/phar-stream-wrapper/src/PharStreamWrapper.php, line 312

Class

PharStreamWrapper

Namespace

TYPO3\PharStreamWrapper

Code

public function stream_set_option($option, $arg1, $arg2) {
    if ($option === STREAM_OPTION_BLOCKING) {
        return $this->invokeInternalStreamWrapper('stream_set_blocking', $this->internalResource, $arg1);
    }
    if ($option === STREAM_OPTION_READ_TIMEOUT) {
        return $this->invokeInternalStreamWrapper('stream_set_timeout', $this->internalResource, $arg1, $arg2);
    }
    if ($option === STREAM_OPTION_WRITE_BUFFER) {
        return $this->invokeInternalStreamWrapper('stream_set_write_buffer', $this->internalResource, $arg2) === 0;
    }
    return false;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.