L-codes / Neo-reGeorg

Neo-reGeorg is a project that seeks to aggressively refactor reGeorg
GNU General Public License v3.0
2.84k stars 439 forks source link

PHP数组初始化问题 #82

Closed me1ons closed 1 year ago

me1ons commented 1 year ago

错误详细描述

[ERROR ] [Ask NeoGeorg] NeoGeorg is not ready, please check URL and KEY. rep: [500] Internal Server Error [ERROR ] [Ask NeoGeorg] You can set the --skip parameter to ignore errors 在PHP中,数组的初始化方式在PHP版本5.4之前是不支持使用简化的数组初始化语法的。

解决方案

请修改https://github.com/L-codes/Neo-reGeorg/blob/master/templates/tunnel.php 在第11行处 $info = [];改为 $info = array();

L-codes commented 1 year ago

感谢建议,已经采纳并发布5.0.2版本 :)