Lines Matching refs:flock
2 Test flock() function: Basic functionality
6 Prototype: bool flock(resource $handle, int $operation [, int &$wouldblock]);
11 echo "*** Testing flock() fun with file and dir ***\n";
15 var_dump(flock($file_handle, LOCK_SH|LOCK_NB));
16 var_dump(flock($file_handle, LOCK_UN));
17 var_dump(flock($file_handle, LOCK_EX));
18 var_dump(flock($file_handle, LOCK_UN));
24 var_dump(flock($dir_handle, LOCK_SH|LOCK_NB));
25 var_dump(flock($dir_handle, LOCK_UN));
26 var_dump(flock($dir_handle, LOCK_EX));
27 var_dump(flock($dir_handle, LOCK_UN));
34 *** Testing flock() fun with file and dir ***