[2048] ErrorException in Base.php line 109

Only variables should be passed by reference

  1. $ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
  2. } elseif (isset($_SERVER['REMOTE_ADDR']) && $_SERVER['REMOTE_ADDR'] && strcasecmp($_SERVER['REMOTE_ADDR'], $unknown)) {
  3. // 没有代理、使用普通匿名代理和高匿代理的情况
  4. $ip = $_SERVER['REMOTE_ADDR'];
  5. }
  6. // 处理多层代理的情况
  7. if (strpos($ip, ',') !== false) {
  8. // 输出第一个IP
  9. $ip = reset(explode(',', $ip));
  10. }
  11. return $ip;
  12. }
  13. /*
  14. * 获取当前URL信息
  15. * */
  16. protected function initlanmu() {
  17. $data = $this->request->param();

Call Stack

  1. in Base.php line 109
  2. at Error::appError(2048, 'Only variables shoul...', '/data/work/html/diao...', 109, ['ip' => '110.249.202.203, 218...', 'unknown' => 'unknown']) in Base.php line 109
  3. at Base->getClientIp() in Base.php line 91
  4. at Base->_initialize() in Index.php line 17
  5. at Index->_initialize() in Controller.php line 59
  6. at Controller->__construct(object(Request))
  7. at ReflectionClass->newInstanceArgs([object(Request)]) in App.php line 359
  8. at App::invokeClass('app\officialweb\cont...') in Loader.php line 479
  9. at Loader::controller('Index', 'controller', false, 'Error') in App.php line 581
  10. at App::module(['officialweb', 'Index', 'index'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 457
  11. at App::exec(['type' => 'module', 'module' => ['officialweb', 'Index', 'index'], 'convert' => false], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  12. at App::run() in start.php line 19
  13. at require('/data/work/html/diao...') in index.php line 17

Environment Variables

GET Data
empty
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

HTTP_HOST
20.zhunducdn.com
HTTP_X_FORWARDED_FOR
110.249.202.203, 218.12.76.51
HTTP_USER_AGENT
Mozilla/5.0 (Linux; Android 5.0) AppleWebKit/537.36 (KHTML, like Gecko) Mobile Safari/537.36 (compatible; Bytespider; https://zhanzhang.toutiao.com/)
HTTP_ACCEPT
*/*
HTTP_REFERER
https://www.diaosi.net/tuilamen/proview-15.html
HTTP_VIA
CHN-HEshijiazhuang-AREACUCC1-CACHE50, CHN-TJ-GLOBAL1-CACHE81
HTTP_CDN_SRC_IP
110.249.202.203
PATH
/sbin:/usr/sbin:/bin:/usr/bin
SERVER_SIGNATURE
<address>Apache Server at 20.zhunducdn.com Port 80</address>
SERVER_SOFTWARE
Apache
SERVER_NAME
20.zhunducdn.com
SERVER_ADDR
172.18.104.89
SERVER_PORT
80
REMOTE_ADDR
60.28.235.82
DOCUMENT_ROOT
/data/work/html/
SERVER_ADMIN
root@localhost
SCRIPT_FILENAME
/data/work/html/diaosinet/index.php
REMOTE_PORT
21841
GATEWAY_INTERFACE
CGI/1.1
SERVER_PROTOCOL
HTTP/1.1
REQUEST_METHOD
GET
QUERY_STRING
REQUEST_URI
/diaosinet/
SCRIPT_NAME
/diaosinet/index.php
PHP_SELF
/diaosinet/index.php
REQUEST_TIME_FLOAT
1668529809.024
REQUEST_TIME
1668529809
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/data/work/html/diaosinet/application/
THINK_VERSION
5.0.24
THINK_START_TIME
1668529809.0256
THINK_START_MEM
255304
EXT
.php
DS
/
THINK_PATH
/data/work/html/diaosinet/thinkphp/
LIB_PATH
/data/work/html/diaosinet/thinkphp/library/
CORE_PATH
/data/work/html/diaosinet/thinkphp/library/think/
TRAIT_PATH
/data/work/html/diaosinet/thinkphp/library/traits/
ROOT_PATH
/data/work/html/diaosinet/
EXTEND_PATH
/data/work/html/diaosinet/extend/
VENDOR_PATH
/data/work/html/diaosinet/vendor/
RUNTIME_PATH
/data/work/html/diaosinet/runtime/
LOG_PATH
/data/work/html/diaosinet/runtime/log/
CACHE_PATH
/data/work/html/diaosinet/runtime/cache/
TEMP_PATH
/data/work/html/diaosinet/runtime/temp/
CONF_PATH
/data/work/html/diaosinet/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
url
/diaosinet/
ref
https://www.diaosi.net/tuilamen/proview-15.html
ent
Mozilla/5.0 (Linux; Android 5.0) AppleWebKit/537.36 (KHTML, like Gecko) Mobile Safari/537.36 (compatible; Bytespider; https://zhanzhang.toutiao.com/)
site
http://www.ok03.vip/
road
?20.zhunducdn.com/diaosinet/
regs
@Baidu|Sogou|Yisou|Haosou|Spider|So.com|Sm.cn@i
mobile
/phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone/
area
false