Skip to content

Commit

Permalink
Fixed: Suppressed errors in stat() call when a file was not found.
Browse files Browse the repository at this point in the history
  • Loading branch information
adri committed Jan 23, 2014
1 parent 65a8bbe commit 933f47c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/VCR/Util/StreamProcessor.php
Expand Up @@ -190,7 +190,11 @@ public function stream_tell()
public function url_stat($path, $flags)
{
$this->restore();
$result = @stat($path);
try {
$result = @stat($path);
} catch (Exception $e) {
$result = false;
}
$this->intercept();
return $result;
}
Expand Down

0 comments on commit 933f47c

Please sign in to comment.