Skip to content

Commit e3e9d47

Browse files
committed
Don't display filesystem function warnings
1 parent 52512ce commit e3e9d47

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

phpfastcache/3.0.0/phpfastcache.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -172,14 +172,14 @@ public static function getPath($skip_create_path = false, $config) {
172172

173173
if($skip_create_path == false && !isset(self::$tmp[$full_pathx])) {
174174

175-
if(!file_exists($full_path) || !is_writable($full_path)) {
176-
if(!file_exists($full_path)) {
177-
mkdir($full_path,self::__setChmodAuto($config));
175+
if(!@file_exists($full_path) || !@is_writable($full_path)) {
176+
if(!@file_exists($full_path)) {
177+
@mkdir($full_path,self::__setChmodAuto($config));
178178
}
179-
if(!is_writable($full_path)) {
180-
chmod($full_path,self::__setChmodAuto($config));
179+
if(!@is_writable($full_path)) {
180+
@chmod($full_path,self::__setChmodAuto($config));
181181
}
182-
if(!file_exists($full_path) || !is_writable($full_path)) {
182+
if(!@file_exists($full_path) || !@is_writable($full_path)) {
183183
die("Sorry, Please create ".$full_path." and SET Mode 0777 or any Writable Permission!");
184184
}
185185
}

0 commit comments

Comments
 (0)