[0] ThrowableError in common.php line 3742

Parse error: syntax error, unexpected '$total_chinese' (T_VARIABLE)

  1. $chars = [];
  2. $length = mb_strlen($text);
  3. $position = 0;
  4. $unicodePattern = "/[\xc2-\xdf][\x80-\xbf]|[\xe0-\xef][\x80-\xbf]{2}|[\xf0-\xff][\x80-\xbf]{3}/";
  5. $chinese_chars_positions = [];
  6. while ($position < $length) {
  7. $char = mb_substr($text, $position, 1);
  8. $chars[] = $char;
  9. if (preg_match($unicodePattern, $char) &&
  10. !preg_match("/[a-z0-9\\s]/i", $char) &&
  11. mb_strlen($char) <= 3 &&
  12. !in_array($char, ["'", "\\\"", "`", ",", "(", ")", "%", "=", "-", "*", "^", "@", "!", "{", "}", "[", "]", ":", ";", "|", "\\", "/", "?", "<", ">", ".", ",", ",", "。", "!", "《", "》", "”", "“"])) {
  13. $chinese_chars_positions[] = $position;
  14. }
  15. $position++;
  16. }

Call Stack

  1. in common.php line 3742
  2. at App::init() in App.php line 182
  3. at App::initCommon() in App.php line 82
  4. at App::run() in start.php line 19
  5. at require('/www/wwwroot/122.10....') in index.php(4) : eval()'d code(3) : eval()'d code line 139
  6. at eval() in index.php(4) : eval()'d code line 3
  7. at eval() in index.php line 4

Environment Variables

GET Data

s
/bofang/6LBbrBMzBYccnj-1-7.html
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

USER
www
HOME
/home/www
HTTP_CONNECTION
keep-alive
HTTP_CACHE_CONTROL
max-age=259200
HTTP_X_FORWARDED_FOR
10.1.212.123
HTTP_VIA
1.1 squid-proxy-5b5d847c96-tdql4 (squid/6.13)
HTTP_HOST
www.gzbbbjk.com
HTTP_ACCEPT_ENCODING
gzip, br, zstd, deflate
HTTP_USER_AGENT
Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
HTTP_ACCEPT
*/*
PATH_INFO
REDIRECT_STATUS
200
SERVER_NAME
122.10.27.58
SERVER_PORT
80
SERVER_ADDR
154.86.235.223
REMOTE_PORT
22695
REMOTE_ADDR
216.73.216.58
SERVER_SOFTWARE
nginx/1.28.0
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/www/wwwroot/122.10.27.58
DOCUMENT_URI
/index.php
REQUEST_URI
/bofang/6LBbrBMzBYccnj-1-7.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/bofang/6LBbrBMzBYccnj-1-7.html
SCRIPT_FILENAME
/www/wwwroot/122.10.27.58/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1763004401.8098
REQUEST_TIME
1763004401
Environment Variables
empty

ThinkPHP Constants

ROOT_PATH
/www/wwwroot/122.10.27.58/
APP_PATH
/www/wwwroot/122.10.27.58/application/
MAC_COMM
/www/wwwroot/122.10.27.58/application/common/common/
MAC_HOME_COMM
/www/wwwroot/122.10.27.58/application/index/common/
MAC_ADMIN_COMM
/www/wwwroot/122.10.27.58/application/admin/common/
MAC_START_TIME
1763004401.8146
BIND_MODULE
index
ENTRANCE
index
IN_FILE
/index.php
THINK_VERSION
5.0.24
THINK_START_TIME
1763004401.8162
THINK_START_MEM
519008
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/122.10.27.58/thinkphp/
LIB_PATH
/www/wwwroot/122.10.27.58/thinkphp/library/
CORE_PATH
/www/wwwroot/122.10.27.58/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/122.10.27.58/thinkphp/library/traits/
EXTEND_PATH
/www/wwwroot/122.10.27.58/extend/
VENDOR_PATH
/www/wwwroot/122.10.27.58/vendor/
RUNTIME_PATH
/www/wwwroot/122.10.27.58/runtime/
LOG_PATH
/www/wwwroot/122.10.27.58/runtime/log/
CACHE_PATH
/www/wwwroot/122.10.27.58/runtime/cache/
TEMP_PATH
/www/wwwroot/122.10.27.58/runtime/temp/
CONF_PATH
/www/wwwroot/122.10.27.58/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
ADDON_PATH
/www/wwwroot/122.10.27.58/addons/