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 20, 2014
1 parent 65a8bbe commit 65b4baf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/VCR/Util/StreamProcessor.php
Expand Up @@ -190,6 +190,9 @@ public function stream_tell()
public function url_stat($path, $flags)
{
$this->restore();
if (!file_exists($path)) {
return false;
}
$result = @stat($path);
$this->intercept();
return $result;
Expand Down

0 comments on commit 65b4baf

Please sign in to comment.