public function LocalReadOnlyStream::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 LocalStream::chmod

File

drupal/core/lib/Drupal/Core/StreamWrapper/LocalReadOnlyStream.php, line 221
Definition of Drupal\Core\StreamWrapper\LocalReadOnlyStream.

Class

LocalReadOnlyStream
Defines a read-only Drupal stream wrapper base class for local files.

Namespace

Drupal\Core\StreamWrapper

Code

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