#0 [8192]ErrorException in datacode.php line 452

strstr(): Passing null to parameter #1 ($haystack) of type string is deprecated

  1. return session('usercode');
  2. }
  3. /**
  4. * 文章点赞
  5. */
  6. function interactive($type = '', $pro = '', $scene = ''){
  7. $str = $type.'-'.$pro.'-'.usercode();
  8. $interactive = cache('interactive');
  9. if(!strstr($interactive,$str)){
  10. if($scene == '') cache('interactive',$interactive.'|'.$str);
  11. return false;
  12. }
  13. return true;
  14. }
  15. /**
  16. * 积分卡可用数量
  17. */

Call Stack

  1. in datacode.php line 452
  2. at Error->appError()
  3. at strstr() in datacode.php line 452
  4. at interactive() in a350efe65fa1d491a90297ee7e989757.php line 60
  5. at include('/www/wwwroot/www.maf...') in File.php line 60
  6. at File->read() in Template.php line 250
  7. at Template->fetch() in Think.php line 131
  8. at Think->fetch() in View.php line 90
  9. at View->think\{closure}() in View.php line 122
  10. at View->getContent() in View.php line 91
  11. at View->fetch() in View.php line 92
  12. at View->output() in Response.php line 389
  13. at Response->getContent() in Response.php line 131
  14. at Response->send() in RuntimeService.php line 209
  15. at RuntimeService::doWebsiteInit() in index.php line 9

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
HTTP_HOST www.mafabu.com
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME www.mafabu.com
SERVER_PORT 443
SERVER_ADDR 10.0.4.9
REMOTE_PORT 33884
REMOTE_ADDR 44.213.80.203
SERVER_SOFTWARE nginx/1.22.1
GATEWAY_INTERFACE CGI/1.1
HTTPS on
REQUEST_SCHEME https
SERVER_PROTOCOL HTTP/2.0
DOCUMENT_ROOT /www/wwwroot/www.mafabu.com/public
DOCUMENT_URI /index.php
REQUEST_URI /b/thinkct
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/b/thinkct
SCRIPT_FILENAME /www/wwwroot/www.mafabu.com/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711665013.8293
REQUEST_TIME 1711665013