我有了笨版本3.1.0,我想「升級」到3.1.2(最新版本)笨3.1.0 3.1.2升級悲慘失敗
我沒有定製文件的應用程序在系統文件夾中。我已經重命名了系統文件夾(出於安全原因),並且該更改位於我的index.php 只要我打開舊的系統文件夾,應用程序就可以正常工作。
,我得到的錯誤是:
PHP Parse error: syntax error, unexpected T_CONST in C:\\prj\\www\\nbo\\systemXXYYZZ\\core\\CodeIgniter.php on line 58
的CodeIgniter.php的58號線:
LINE 37:defined('BASEPATH') OR exit('No direct script access allowed');
/* COMMENTS IN BETWEEN */
LINE 58: const CI_VERSION = '3.1.2';
我的PHP版本是5.2.4,Apache的版本是2.2.6
您是否檢查了遷移的[說明](https://codeigniter.com/user_guide/installation/upgrading.html)? – Phiter
是的,我做到了。我沒有在系統文件夾中的自定義文件,我不使用會話表,所以沒有什麼可以改變 – user2417624
可能的重複http://stackoverflow.com/questions/16778994/getting-an-error-using-constants –