summaryrefslogtreecommitdiff
path: root/includes/stream_wrappers.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-12-10 15:39:43 +0000
committerDries Buytaert <dries@buytaert.net>2009-12-10 15:39:43 +0000
commitc2f26d3368d38ce4d73aa0089d09d2d78ccf9285 (patch)
tree3db0c442068bd5bfb2a91e26675dfe9019cc8fab /includes/stream_wrappers.inc
parent3016bcbd235b75e60a44566368c2d3702a625174 (diff)
downloadbrdo-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.inc7
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());