summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorctrlaltca@gmail.com <>2012-04-14 14:54:16 +0000
committerctrlaltca@gmail.com <>2012-04-14 14:54:16 +0000
commit53d396c78856bd991245c4c1b0058e7e79a22205 (patch)
tree37c4559c359999db1122f0b25876040101f5e875 /framework
parent19ae94c152b5c654ee53b4655b73185addc84c67 (diff)
fix #396
Diffstat (limited to 'framework')
-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);