Lines Matching refs:handle
146 $handle = fopen($this->locksFile, 'r');
147 flock($handle, LOCK_SH);
150 $data = stream_get_contents($handle);
153 flock($handle, LOCK_UN);
154 fclose($handle);
172 $handle = fopen($this->locksFile, 'a+');
173 flock($handle, LOCK_EX);
176 ftruncate($handle, 0);
177 rewind($handle);
179 fwrite($handle, serialize($newData));
180 flock($handle, LOCK_UN);
181 fclose($handle);