改进start.php环境变量处理 改进hook类方法执行返回值

This commit is contained in:
thinkphp
2016-05-25 14:26:28 +08:00
parent 4ccb4c6bdf
commit 7a9eeba565
3 changed files with 12 additions and 10 deletions

View File

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