修正单元测试 改进start

This commit is contained in:
thinkphp
2016-05-25 16:10:47 +08:00
parent 458cd82507
commit 62b01bf566
2 changed files with 5 additions and 2 deletions

View File

@@ -21,7 +21,10 @@ if (is_file(ROOT_PATH . 'env' . EXT)) {
$env = include ROOT_PATH . 'env' . EXT;
foreach ($env as $key => $val) {
$name = ENV_PREFIX . $key;
putenv("$name=".var_export($var,true));
if(is_bool($val)){
$val = $val ? 1 : 0;
}
putenv("$name=$var");
}
}
// 自动识别调试模式