function PharStreamWrapper::stream_metadata

Parameters

string $path:

int $option:

string|int $value:

Return value

bool

File

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

Class

PharStreamWrapper

Namespace

TYPO3\PharStreamWrapper

Code

public function stream_metadata($path, $option, $value) {
    $this->assert($path, Behavior::COMMAND_STEAM_METADATA);
    if ($option === STREAM_META_TOUCH) {
        return call_user_func_array(array(
            $this,
            'invokeInternalStreamWrapper',
        ), array_merge(array(
            'touch',
            $path,
        ), (array) $value));
    }
    if ($option === STREAM_META_OWNER_NAME || $option === STREAM_META_OWNER) {
        return $this->invokeInternalStreamWrapper('chown', $path, $value);
    }
    if ($option === STREAM_META_GROUP_NAME || $option === STREAM_META_GROUP) {
        return $this->invokeInternalStreamWrapper('chgrp', $path, $value);
    }
    if ($option === STREAM_META_ACCESS) {
        return $this->invokeInternalStreamWrapper('chmod', $path, $value);
    }
    return false;
}

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