public LocalStream::stream_lock($operation)
Support for flock().
int $operation: One of the following:
bool Always returns TRUE at the present time.
Overrides PhpStreamWrapperInterface::stream_lock
http://php.net/manual/streamwrapper.stream-lock.php
public function stream_lock($operation) { if (in_array($operation, array(LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB))) { return flock($this->handle, $operation); } return TRUE; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!StreamWrapper!LocalStream.php/function/LocalStream::stream_lock/8.1.x