修正start.php

This commit is contained in:
thinkphp
2016-05-27 17:47:13 +08:00
parent 82ddda4567
commit 849058b89b

View File

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