Skip to content

Commit 933f47c

Browse files
committed
Fixed: Suppressed errors in stat() call when a file was not found.
1 parent 65a8bbe commit 933f47c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/VCR/Util/StreamProcessor.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,11 @@ public function stream_tell()
190190
public function url_stat($path, $flags)
191191
{
192192
$this->restore();
193-
$result = @stat($path);
193+
try {
194+
$result = @stat($path);
195+
} catch (Exception $e) {
196+
$result = false;
197+
}
194198
$this->intercept();
195199
return $result;
196200
}

0 commit comments

Comments
 (0)