public static function setIncludePath() { if (isset(self::$_pathList)) { // to avoid passing here more than once in unit tests return; } self::$_pathList = array('.', APP_DIR, APP_DIR . '/libs', get_include_path()); if (!set_include_path(implode(PATH_SEPARATOR, self::$_pathList))) { die('ERROR: couldn\'t execute PHP\'s set_include_path() function in your system.' . ' Please ask your system admin to enable that functionality.'); } }