From 53d396c78856bd991245c4c1b0058e7e79a22205 Mon Sep 17 00:00:00 2001 From: "ctrlaltca@gmail.com" <> Date: Sat, 14 Apr 2012 14:54:16 +0000 Subject: fix #396 --- framework/TApplication.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'framework/TApplication.php') 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); -- cgit v1.2.3