瀏覽代碼

ZF-8354: replaced file_exists() with Zend_Loader::isReadable()

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@19235 44c647ce-9c0f-0410-b52a-842ac1e357ba
bate 16 年之前
父節點
當前提交
bb9394b880
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      library/Zend/Controller/Dispatcher/Standard.php

+ 1 - 1
library/Zend/Controller/Dispatcher/Standard.php

@@ -335,7 +335,7 @@ class Zend_Controller_Dispatcher_Standard extends Zend_Controller_Dispatcher_Abs
         $dispatchDir = $this->getDispatchDirectory();
         $loadFile    = $dispatchDir . DIRECTORY_SEPARATOR . $this->classToFilename($className);
 
-        if (file_exists($loadFile)) {
+        if (Zend_Loader::isReadable($loadFile)) {
             include_once $loadFile;
         } else {
             require_once 'Zend/Controller/Dispatcher/Exception.php';