WebStream/IO/FileOutputStream.php 1 location
|
@@ 54-56 (lines=3) @@
|
51 |
|
throw new IOException("Unable open " . $this->file->getFilePath()); |
52 |
|
} |
53 |
|
|
54 |
|
if (!flock($stream, LOCK_EX | LOCK_NB)) { |
55 |
|
throw new IOException("Cannot lock file: " . $this->file->getFilePath()); |
56 |
|
} |
57 |
|
|
58 |
|
parent::__construct($stream); |
59 |
|
} |
WebStream/IO/Writer/SimpleFileWriter.php 1 location
|
@@ 66-68 (lines=3) @@
|
63 |
|
throw new IOException("Unable open " . $this->filepath); |
64 |
|
} |
65 |
|
|
66 |
|
if (!flock($stream, LOCK_EX | LOCK_NB)) { |
67 |
|
throw new IOException("Cannot lock file: " . $this->filepath); |
68 |
|
} |
69 |
|
|
70 |
|
if (fwrite($stream, $data) === false) { |
71 |
|
flock($stream, LOCK_UN); |