Dostupnost ve verzích: PHP 4.0
Portable advisory file locking
Parametr | Datový typ | Výchozí hodnota | Poznámka |
---|---|---|---|
$handle |
resource |
An open file pointer. | |
$operation |
int |
operation is one of the following: LOCK_SH to acquire a shared lock
(reader). @param int $wouldblock [optional]
The optional third argument is set to true if the lock would block (EWOULDBLOCK errno condition). |
|
$wouldblock |
int |
null | The optional third argument is set to true if the lock would block (EWOULDBLOCK errno condition). |
bool
true on success or false on failure.
Sponzorované odkazy
Pomohl Vám tento článek?