Explorar el Código

additional test for some particular configurations

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@15955 44c647ce-9c0f-0410-b52a-842ac1e357ba
fab hace 17 años
padre
commit
5887d39a6a
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  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';