فهرست منبع

additional test for some particular configurations

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@15955 44c647ce-9c0f-0410-b52a-842ac1e357ba
fab 16 سال پیش
والد
کامیت
5887d39a6a
1فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  1. 3 1
      library/Zend/Cache/Backend.php

+ 3 - 1
library/Zend/Cache/Backend.php

@@ -183,7 +183,9 @@ class Zend_Cache_Backend
         if ($tempFile) {
         	$dir = realpath(dirname($tempFile));
             unlink($tempFile);
-            return $dir;
+            if ($this->_isGoodTmpDir($dir)) {
+                return $dir;
+            }
         }
         if ($this->_isGoodTmpDir('/tmp')) {
         	return '/tmp';