From 4f2835ad469ee496f250327268cff6ed3292a9e7 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Wed, 10 Apr 2013 16:20:50 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=8A=A8=E7=94=9F=E6=88=90=E7=9A=84?= =?UTF-8?q?=E6=97=B6=E5=80=99=20=E6=A3=80=E6=B5=8B=E5=BA=94=E7=94=A8?= =?UTF-8?q?=E7=9B=AE=E5=BD=95=E6=98=AF=E5=90=A6=E5=8F=AF=E5=86=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Think/Create.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Think/Create.php b/Think/Create.php index 2c93f95f..82400052 100644 --- a/Think/Create.php +++ b/Think/Create.php @@ -18,7 +18,10 @@ class Create { if(is_writable($lockfile)) { return ; } else { - touch($lockfile); + if(!touch($lockfile)){ + header('Content-Type:text/html; charset=utf-8'); + exit('目录 [ '.APP_PATH.' ] 不可写!'); + } } foreach ($build as $module=>$list){ if(!is_dir(APP_PATH.$module)) {// 创建模块目录