Lines Matching refs:flock
2 flock() tests
6 $file = dirname(__FILE__)."/flock.dat";
8 var_dump(flock());
9 var_dump(flock("", "", $var));
14 var_dump(flock($fp, LOCK_SH|LOCK_NB));
18 var_dump(flock($fp, LOCK_SH|LOCK_NB));
19 var_dump(flock($fp, LOCK_UN));
20 var_dump(flock($fp, LOCK_EX));
21 var_dump(flock($fp, LOCK_UN));
24 var_dump(flock($fp, LOCK_SH|LOCK_NB, $would));
26 var_dump(flock($fp, LOCK_UN, $would));
28 var_dump(flock($fp, LOCK_EX, $would));
30 var_dump(flock($fp, LOCK_UN, $would));
33 var_dump(flock($fp, -1));
34 var_dump(flock($fp, 0));
40 Warning: flock() expects at least 2 parameters, 0 given in %s on line %d
43 Warning: flock() expects parameter 1 to be resource, string given in %s on line %d
46 Warning: flock(): %d is not a valid stream resource in %s on line %d
62 Warning: flock(): Illegal operation argument in %s on line %d