@@ 154-162 (lines=9) @@ | ||
151 | return false; |
|
152 | } |
|
153 | ||
154 | if (($uFlags & self::LOCK_NONBLOCKING) === self::LOCK_NONBLOCKING) { |
|
155 | $tLockFlag = LOCK_NB; |
|
156 | } elseif (($uFlags & self::LOCK_SHARE) === self::LOCK_SHARE) { |
|
157 | $tLockFlag = LOCK_SH; |
|
158 | } elseif (($uFlags & self::LOCK_EXCLUSIVE) === self::LOCK_EXCLUSIVE) { |
|
159 | $tLockFlag = LOCK_EX; |
|
160 | } else { |
|
161 | $tLockFlag = false; |
|
162 | } |
|
163 | ||
164 | if ($tLockFlag !== false) { |
|
165 | if (flock($tHandle, $tLockFlag) === false) { |
|
@@ 206-214 (lines=9) @@ | ||
203 | return false; |
|
204 | } |
|
205 | ||
206 | if (($uFlags & self::LOCK_NONBLOCKING) === self::LOCK_NONBLOCKING) { |
|
207 | $tLockFlag = LOCK_NB; |
|
208 | } elseif (($uFlags & self::LOCK_SHARE) === self::LOCK_SHARE) { |
|
209 | $tLockFlag = LOCK_SH; |
|
210 | } elseif (($uFlags & self::LOCK_EXCLUSIVE) === self::LOCK_EXCLUSIVE) { |
|
211 | $tLockFlag = LOCK_EX; |
|
212 | } else { |
|
213 | $tLockFlag = false; |
|
214 | } |
|
215 | ||
216 | if ($tLockFlag !== false) { |
|
217 | if (flock($tHandle, $tLockFlag) === false) { |