kalcaddle / KodExplorer

A web based file manager,web IDE / browser based code editor
https://kodcloud.com
6.24k stars 1.83k forks source link

PHP 8.1.2 运行出错 #503

Closed mnixry closed 2 years ago

mnixry commented 2 years ago
Fatal error: Cannot acquire reference to $GLOBALS in /var/www/kod-explorer/app/function/web.function.php on line 753
the-code-writer commented 2 years ago

Prior to PHP 8.1, it was possible to create a reference to $GLOBALS array, and modify that reference. All changes would then be reflected in the global variables as well. From PHP 8.1, it is no longer allowed to create references to $GLOBALS variable. Further, it is no longer allowed to pass $GLOBALS to a function that expects a parameter by-reference.

kalcaddle commented 2 years ago

4.48: fixed.

mnixry commented 2 years ago

感谢您修复此问题

但是在我git pull拉取目前master分支最新的代码之后, 出现了新的错误:

Fatal error: Uncaught Error: Undefined constant "ACT" in /var/www/kod-explorer/app/function/helper.function.php:428 Stack trace: #0 /var/www/kod-explorer/app/function/helper.function.php(345): user_logout() #1 /var/www/kod-explorer/config/config.php(111): init_common() #2 /var/www/kod-explorer/index.php(3): include('...') #3 {main} thrown in /var/www/kod-explorer/app/function/helper.function.php on line 428
kalcaddle commented 2 years ago

已兼容处理.

mnixry commented 2 years ago

已兼容处理.

感谢,已能正常工作