php-version: 7.1.16 tp-version: 5.1.14
Step1 执行php think optimize:config
之后直接执行 php think 也是报上面的异常结果: Succeed!
Step2 执行php think optimize:autoload
Fatal error: Cannot use think\Container as Container because the name is already in use in C:\Program Files (x86)\Jenkins\workspace\dev\runtime\init.php on line 39 Call Stack: 0.2010 353720 1. {main}() C:\Program Files (x86)\Jenkins\workspace\dev\think:0 0.2080 679048 2. think\App->initialize() C:\Program Files (x86)\Jenkins\workspace\dev\think:19 0.2110 746392 3. think\App->init(???) C:\Program Files (x86)\Jenkins\workspace\dev\thinkphp\library\think\App.php:234 [think\exception\ErrorException] Cannot use think\Container as Container because the name is already in use Exception trace: () at C:\Program Files (x86)\Jenkins\workspace\dev\runtime\init.php:39 think\Error::appShutdown() at n/a:n/a