Lines Matching refs:flock
2 flock() tests
6 $file = __DIR__."/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 $file = __DIR__."/flock.dat";
44 Warning: flock() expects at least 2 parameters, 0 given in %s on line %d
47 Warning: flock() expects parameter 1 to be resource, string given in %s on line %d
50 Warning: flock(): supplied resource is not a valid stream resource in %s on line %d
66 Warning: flock(): Illegal operation argument in %s on line %d