闭包路由定义的时候 函数返回值 如果是数组之外的 都会直接输出并exit

This commit is contained in:
thinkphp
2015-12-02 16:45:54 +08:00
parent 0dc82f3ab0
commit 59f71a86bb
3 changed files with 7 additions and 9 deletions

View File

@@ -25,10 +25,6 @@ class App
*/
public static function run(array $config = [])
{
if (version_compare(PHP_VERSION, '5.4.0', '<')) {
throw new Exception('require PHP > 5.4.0 !');
}
// 初始化公共模块
self::initModule(COMMON_MODULE, $config);