From e43e62197b4b079532b7ca305ce0f19caea81c69 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Wed, 13 Mar 2013 16:58:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=89=88=E6=9C=AC=E5=8F=B7?= =?UTF-8?q?=E4=B8=BA4.0beta?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- base.php | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/base.php b/base.php index b4d5220c..4ac3aa50 100644 --- a/base.php +++ b/base.php @@ -10,15 +10,11 @@ // +---------------------------------------------------------------------- // $Id$ -if(version_compare(PHP_VERSION,'5.3.0','<')) die('require PHP > 5.3.0 !'); -if(version_compare(PHP_VERSION,'5.4.0','<')) { - ini_set('magic_quotes_runtime',0); - define('MAGIC_QUOTES_GPC',get_magic_quotes_gpc()?True:False); -}else{ - define('MAGIC_QUOTES_GPC',false); -} +if(version_compare(PHP_VERSION,'5.4.0','<')) die('require PHP > 5.4.0 !'); +define('MAGIC_QUOTES_GPC',false); + // 版本信息 -define('THINK_VERSION', '4.0'); +define('THINK_VERSION', '4.0beta'); // 系统常量 defined('THINK_PATH') or define('THINK_PATH', dirname(__FILE__).'/'); defined('CORE_PATH') or define('CORE_PATH', THINK_PATH.'Think/');