本帖最后由 堡塔运维小林 于 2023-5-3 18:00 编辑
为了能快速了解并处理您的问题,请提供以下基础信息:
系统版本:CentOS 7.5.1804 x86_64(Py3.7.9)
问题描述:用了宝塔API迁移之后这样了怎么回事呢?
相关截图(日志、错误): [8192] ErrorException in [url=]common.php line 1123[/url]
Array and string offset access syntax with curly braces is deprecated
- function getFirstCharter($s0) {
- $fchar = ord($s0(0));
- if ($fchar >= ord("A") and $fchar <= ord("z")) {
- return strtoupper($s0(0));
- }
- $s1 = \iconv("UTF-8", "gb2312", $s0);
- $s2 = \iconv("gb2312", "UTF-8", $s1);
- if ($s2 == $s0) {$s = $s1;} else { $s = $s0;}
- $asc = ord($s(0)) * 256 + ord($s{1}) - 65536;
- if ($asc >= -20319 and $asc <= -20284) {
- return "A";
- }
- if ($asc >= -20283 and $asc <= -19776) {
- return "B";
- }
- if ($asc >= -19775 and $asc <= -19219) {
Call Stack- in [url=]common.php line 1123[/url]
- at Error::appError() in [url=]App.php line 514[/url]
- at include() in [url=]App.php line 514[/url]
- at App::init() in [url=]App.php line 423[/url]
- at App::initCommon() in [url=]App.php line 74[/url]
- at App::run() in [url=]start.php line 18[/url]
- at require('[url=]/www/wwwroot/web/cor...[/url]') in [url=]index.php line 33[/url]
|
|