Skip to content
This repository has been archived by the owner on Nov 2, 2020. It is now read-only.

Commit

Permalink
fix(Env): Exit when parse env file failed
Browse files Browse the repository at this point in the history
  • Loading branch information
Rhilip committed Jul 18, 2019
1 parent 83517b2 commit fc19504
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
- **Composer:** Update mirror address

### Feat
- **Category:** Add Categories Support when upload torrent
- **Category:** Add Categories Manage Pane
- **Tracker:** Add `retry in` field when failed
- **UserInfo:** Add Cache Lock of user access_{time,ip} update
Expand Down
3 changes: 3 additions & 0 deletions framework/Base/Env.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ public static function load($envFile)
throw new \Rid\Exceptions\EnvException('Environment file does not exist.');
}
$env = parse_ini_file($envFile);
if (!$env) {
throw new \Rid\Exceptions\EnvException('Fail to parse Environment file.');
}
self::$_env = array_merge($env, $_SERVER, $_ENV);
}

Expand Down

0 comments on commit fc19504

Please sign in to comment.