summaryrefslogtreecommitdiff
path: root/framework/TApplication.php
diff options
context:
space:
mode:
Diffstat (limited to 'framework/TApplication.php')
-rw-r--r--framework/TApplication.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/framework/TApplication.php b/framework/TApplication.php
index ff99d33e..65bb19da 100644
--- a/framework/TApplication.php
+++ b/framework/TApplication.php
@@ -349,9 +349,10 @@ class TApplication extends TComponent
// determine configuration path and file
if(empty($basePath) || ($basePath=realpath($basePath))===false)
throw new TConfigurationException('application_basepath_invalid',$basePath);
- if(is_file($basePath.DIRECTORY_SEPARATOR.$this->getConfigurationFileName()))
+ // is_file prints a warning if the file doesn't exists and open_basedir is in effect
+ if(@is_file($basePath.DIRECTORY_SEPARATOR.$this->getConfigurationFileName()))
$configFile=$basePath.DIRECTORY_SEPARATOR.$this->getConfigurationFileName();
- else if(is_file($basePath))
+ else if(@is_file($basePath))
{
$configFile=$basePath;
$basePath=dirname($configFile);