diff --git a/src/VCR/Util/StreamProcessor.php b/src/VCR/Util/StreamProcessor.php index fdebd0445..93ecb7dde 100644 --- a/src/VCR/Util/StreamProcessor.php +++ b/src/VCR/Util/StreamProcessor.php @@ -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;