public function ReadOnlyStream::chmod

Support for chmod().

Does not change file permissions as this is a read-only stream wrapper.

Parameters

int $mode: Permission flags - see chmod().

Return value

bool FALSE as the permission change will never be allowed.

Overrides StreamWrapperInterface::chmod

File

drupal/core/lib/Drupal/Core/StreamWrapper/ReadOnlyStream.php, line 255
Definition of Drupal\Core\StreamWrapper\ReadOnlyStream.

Class

ReadOnlyStream
Defines a read-only Drupal stream wrapper base class.

Namespace

Drupal\Core\StreamWrapper

Code

public function chmod($mode) {
  trigger_error('chmod() not supported for read-only stream wrappers', E_USER_WARNING);
  return FALSE;
}