[8192] ErrorException in common.php line 413

The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence

  1. /**
  2. * 获取本周所有日期
  3. */
  4. function get_weeks($time = '', $format='Y-m-d'){
  5. $time = $time ? : time();
  6. //获取当前周几
  7. $week = date('w', $time);
  8. $date = [];
  9. for ($i=0; $i<=6; $i++){
  10. $date[$i] = date($format ,strtotime( '+' . $i-$week .' days', $time));
  11. }
  12. return $date;
  13. }
  14. }
  15. //
  16. if (!function_exists("get_week_data")){
  17. /** 获取当前时间以前时间
  18. * @param int $num 天数

Call Stack

  1. in common.php line 413
  2. at Error::appError() in App.php line 290
  3. at include_once() in App.php line 290
  4. at App->init() in App.php line 211
  5. at App->initialize() in App.php line 379
  6. at App->run() in index.php line 24

Environment Variables

GET Data
s /xin.html
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_HOST www.asmhealth.cn
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME www.asmhealth.cn
SERVER_PORT 80
SERVER_ADDR 172.31.76.79
REMOTE_PORT 46840
REMOTE_ADDR 3.88.254.50
SERVER_SOFTWARE nginx/1.22.1
GATEWAY_INTERFACE CGI/1.1
REQUEST_SCHEME http
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /www/wwwroot/www.asmhealth.cn/php/public
DOCUMENT_URI /index.php
REQUEST_URI /xin.html
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/xin.html
SCRIPT_FILENAME /www/wwwroot/www.asmhealth.cn/php/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711679395.1967
REQUEST_TIME 1711679395
Environment Variablesempty
ThinkPHP Constants
APP_PATH /www/wwwroot/www.asmhealth.cn/php/public/../application/