Procházet zdrojové kódy

ZF-9397
Fixed warning in Zend_Tool_Project_Provider_Abstract when analysing profile file

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@23201 44c647ce-9c0f-0410-b52a-842ac1e357ba

ralph před 15 roky
rodič
revize
cda13f74bc
1 změnil soubory, kde provedl 4 přidání a 1 odebrání
  1. 4 1
      library/Zend/Tool/Project/Provider/Abstract.php

+ 4 - 1
library/Zend/Tool/Project/Provider/Abstract.php

@@ -243,8 +243,11 @@ abstract class Zend_Tool_Project_Provider_Abstract
 
     protected function _hasProjectProviderDirectory($pathToProfileFile)
     {
-        // do some static analysis of the file so that we cna determin whether or not to incure
+        // do some static analysis of the file so that we can determin whether or not to incure
         // the cost of loading the profile before the system is fully bootstrapped
+        if (!file_exists($pathToProfileFile)) {
+            return false;
+        }
         
         $contents = file_get_contents($pathToProfileFile);
         if (strstr($contents, '<projectProvidersDirectory') === false) {