diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-12-10 15:39:43 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-12-10 15:39:43 +0000 |
commit | c2f26d3368d38ce4d73aa0089d09d2d78ccf9285 (patch) | |
tree | 3db0c442068bd5bfb2a91e26675dfe9019cc8fab /includes/stream_wrappers.inc | |
parent | 3016bcbd235b75e60a44566368c2d3702a625174 (diff) | |
download | brdo-c2f26d3368d38ce4d73aa0089d09d2d78ccf9285.tar.gz brdo-c2f26d3368d38ce4d73aa0089d09d2d78ccf9285.tar.bz2 |
- Patch #653940 by sun: tests weren't reporting all errors.
Diffstat (limited to 'includes/stream_wrappers.inc')
-rw-r--r-- | includes/stream_wrappers.inc | 7 |
1 files changed, 6 insertions, 1 deletions
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()); |