xiuno目前对php8.0的兼容与修改

1、把xiunophp/xiunophp.min.php和xiunophp/xiunophp.php文件中第20行的

$get_magic_quotes_gpc = get_magic_quotes_gpc();

改为

$get_magic_quotes_gpc = version_compare(PHP_VERSION,'5.4.0','<') ? get_magic_quotes_gpc() : false;

原因:php7.4 已弃用 get_magic_quotes_gpc() 函数 

2、把xiunophp/xn_html_safe.func.php文件中

第785行、938行、951行的rawtext{}的括号改为[]

原因:php7.4 不再支持使用{}大括号来访问数组以及字符串的偏移



© 版权声明
THE END