WebStream/IO/FileInputStream.php 1 location
|
@@ 36-38 (lines=3) @@
|
| 33 |
|
throw new InvalidArgumentException("Unable to open file: " . $file); |
| 34 |
|
} |
| 35 |
|
$stream = @fopen($this->file->getAbsoluteFilePath(), 'r'); |
| 36 |
|
if (!is_resource($stream) || $stream === false) { |
| 37 |
|
throw new IOException("Unable open " . $this->file->getAbsoluteFilePath()); |
| 38 |
|
} |
| 39 |
|
|
| 40 |
|
parent::__construct($stream); |
| 41 |
|
} |
WebStream/IO/FileOutputStream.php 1 location
|
@@ 39-41 (lines=3) @@
|
| 36 |
|
$mode = $isAppend ? 'ab' : 'wb'; |
| 37 |
|
$stream = @fopen($this->file->getAbsoluteFilePath(), $mode); |
| 38 |
|
|
| 39 |
|
if (!is_resource($stream) || $stream === false) { |
| 40 |
|
throw new IOException("Unable open " . $this->file->getAbsoluteFilePath()); |
| 41 |
|
} |
| 42 |
|
|
| 43 |
|
parent::__construct($stream); |
| 44 |
|
} |