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";
16 var_dump(flock($file_handle, LOCK_SH|LOCK_NB));
17 var_dump(flock($file_handle, LOCK_UN));
18 var_dump(flock($file_handle, LOCK_EX));
19 var_dump(flock($file_handle, LOCK_UN));
27 var_dump(flock($dir_handle, LOCK_SH|LOCK_NB));
28 var_dump(flock($dir_handle, LOCK_UN));
29 var_dump(flock($dir_handle, LOCK_EX));
30 var_dump(flock($dir_handle, LOCK_UN));
37 *** Testing flock() fun with file and dir ***