You are here

public function vfsStreamWrapper::stream_lock in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/mikey179/vfsStream/src/main/php/org/bovigo/vfs/vfsStreamWrapper.php \org\bovigo\vfs\vfsStreamWrapper::stream_lock()

set lock status for stream

@since 0.10.0

Parameters

int $operation:

Return value

bool

See also

https://github.com/mikey179/vfsStream/issues/6

https://github.com/mikey179/vfsStream/issues/31

https://github.com/mikey179/vfsStream/issues/40

1 call to vfsStreamWrapper::stream_lock()
vfsStreamWrapperRecordingProxy::stream_lock in vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/proxy/vfsStreamWrapperRecordingProxy.php
set lock status for stream
1 method overrides vfsStreamWrapper::stream_lock()
vfsStreamWrapperRecordingProxy::stream_lock in vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/proxy/vfsStreamWrapperRecordingProxy.php
set lock status for stream

File

vendor/mikey179/vfsStream/src/main/php/org/bovigo/vfs/vfsStreamWrapper.php, line 692

Class

vfsStreamWrapper
Stream wrapper to mock file system requests.

Namespace

org\bovigo\vfs

Code

public function stream_lock($operation) {
  if ((LOCK_NB & $operation) == LOCK_NB) {
    $operation = $operation - LOCK_NB;
  }
  return $this->content
    ->lock($this, $operation);
}