From c2f26d3368d38ce4d73aa0089d09d2d78ccf9285 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 10 Dec 2009 15:39:43 +0000 Subject: - Patch #653940 by sun: tests weren't reporting all errors. --- includes/stream_wrappers.inc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'includes/stream_wrappers.inc') diff --git a/includes/stream_wrappers.inc b/includes/stream_wrappers.inc index c58c58231..bfbe528b4 100644 --- a/includes/stream_wrappers.inc +++ b/includes/stream_wrappers.inc @@ -500,7 +500,12 @@ abstract class DrupalLocalStreamWrapper implements DrupalStreamWrapperInterface public function url_stat($uri, $flags) { $this->uri = $uri; if ($flags & STREAM_URL_STAT_QUIET) { - return @stat($this->getLocalPath()); + if (file_exists($this->getLocalPath())) { + return stat($this->getLocalPath()); + } + else { + return FALSE; + } } else { return stat($this->getLocalPath()); -- cgit v1.2.3