Procházet zdrojové kódy

on PHP 5.2, realpath() returns true if the last segment doesn't exist. Therefore we need to also test with file_exists()

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@24704 44c647ce-9c0f-0410-b52a-842ac1e357ba
rob před 14 roky
rodič
revize
29de88b822

+ 1 - 1
library/Zend/Cloud/StorageService/Adapter/FileSystem.php

@@ -80,7 +80,7 @@ class Zend_Cloud_StorageService_Adapter_FileSystem implements Zend_Cloud_Storage
         $filepath = $this->_getFullPath($path);
         $path     = realpath($filepath);
 
-        if (!$path) {
+        if (!$path || !file_exists($path)) {
             return false;
         }