Function DebugFsStreamWrapper->stream_lock

Definitions

sources/debug_fs.php

  • Portable advisory file locking.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: bool

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$operation integer No No required parameter N/A N/A Operation (LOCK_SH, LOCK_EX, LOCK_UN)

Returns

  • Success status
  • Type: boolean
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Portable advisory file locking.
 *
 * @param  integer $operation Operation (LOCK_SH, LOCK_EX, LOCK_UN)
 * @return boolean Success status
 */

public function stream_lock(int $operation) : bool