From 849058b89b02a5e8f20d6b47556e96f0e73446df Mon Sep 17 00:00:00 2001 From: thinkphp Date: Fri, 27 May 2016 17:47:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3start.php?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- start.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/start.php b/start.php index 970fc937..be2b2ba9 100644 --- a/start.php +++ b/start.php @@ -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"); } } // 自动识别调试模式