/// get last error flag (to tell network connection errors from searchd errors or broken responses)function IsConnectError(){return $this->_connerror;}/// set searchd host name (string) and port (integer)function SetServer ( $host, $port = 0 ){assert ( is_string($host) );if ( $host[0] == '/'){$this->_path = 'unix://' . $host;return;}if ( substr ( $host, 0, 7 )=="unix://" ){$this->_path = $host;return;
string(54231) "
System Error
else
include Config::get('error_tmpl');
// 获取并清空缓存
$content = ob_get_clean();
echo '<pre>';
var_dump($content);
$response = new Response($content, 'html');
// 将错误保存,访问方式 http://www.xxx.com/error.html
file_put_contents('error.html',$content);
if ($exception instanceof HttpException) {
$statusCode = $exception->getStatusCode();
$response->header($exception->getHeaders());
}
if (!isset($statusCode)) {
$statusCode = 500;
}
$response->code($statusCode);
Call Stack
Environment Variables
GET Data
q
零食
POST Data
empty
Files
empty
Cookies
empty
Session
empty
Server/Request Data
USER
www
HOME
/home/www
FCGI_ROLE
RESPONDER
SCRIPT_FILENAME
/www/wwwroot/sun.tpsns.com/index.php
QUERY_STRING
REQUEST_METHOD
GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME
/index.php
REQUEST_URI
/index.php/Home/Goods/search/q/%E9%9B%B6%E9%A3%9F.html
DOCUMENT_URI
/index.php/Home/Goods/search/q/零食.html
DOCUMENT_ROOT
/www/wwwroot/sun.tpsns.com
SERVER_PROTOCOL
HTTP/1.1
REQUEST_SCHEME
http
GATEWAY_INTERFACE
CGI/1.1
SERVER_SOFTWARE
nginx/1.24.0
REMOTE_ADDR
216.73.216.241
REMOTE_PORT
63255
SERVER_ADDR
172.31.123.154
SERVER_PORT
80
SERVER_NAME
sun.tpsns.com
REDIRECT_STATUS
200
PATH_INFO
/Home/Goods/search/q/%E9%9B%B6%E9%A3%9F.html
HTTP_ACCEPT
*/*
HTTP_USER_AGENT
Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
HTTP_ACCEPT_ENCODING
gzip, br, zstd, deflate
HTTP_HOST
sun.tpsns.com
HTTP_VIA
1.1 squid-proxy-5b5d847c96-4m6f9 (squid/6.13)
HTTP_X_FORWARDED_FOR
10.1.200.65
HTTP_CACHE_CONTROL
max-age=259200
HTTP_CONNECTION
keep-alive
PHP_SELF
/index.php/Home/Goods/search/q/%E9%9B%B6%E9%A3%9F.html
REQUEST_TIME_FLOAT
1776618903.8986
REQUEST_TIME
1776618903
HTTPS
on
Environment Variables
empty
ThinkPHP Constants
IS_SAAS
0
SAAS_BASE_USER
0
PLUGIN_PATH
/www/wwwroot/sun.tpsns.com/plugins/
UPLOAD_PATH
public/upload/
TPSHOP_CACHE_TIME
31104000
SITE_URL
https://sun.tpsns.com
HTTP
https
INSTALL_DATE
1463741583
SERIALNUMBER
20160520065303oCWIoa
APP_PATH
/www/wwwroot/sun.tpsns.com/application/
NOW_TIME
1776618903
THINK_VERSION
5.0.15
THINK_START_TIME
1776618903.8997
THINK_START_MEM
323888
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/sun.tpsns.com/thinkphp/
LIB_PATH
/www/wwwroot/sun.tpsns.com/thinkphp/library/
CORE_PATH
/www/wwwroot/sun.tpsns.com/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/sun.tpsns.com/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/sun.tpsns.com/
EXTEND_PATH
/www/wwwroot/sun.tpsns.com/extend/
VENDOR_PATH
/www/wwwroot/sun.tpsns.com/vendor/
RUNTIME_PATH
/www/wwwroot/sun.tpsns.com/runtime/
LOG_PATH
/www/wwwroot/sun.tpsns.com/runtime/log/
CACHE_PATH
/www/wwwroot/sun.tpsns.com/runtime/cache/
TEMP_PATH
/www/wwwroot/sun.tpsns.com/runtime/temp/
CONF_PATH
/www/wwwroot/sun.tpsns.com/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
IS_AJAX
false
IS_GET
true
IS_POST
false
MODULE_NAME
home
CONTROLLER_NAME
Goods
ACTION_NAME
search
PREFIX
tp_
SESSION_ID
SEARCHD_COMMAND_SEARCH
0
SEARCHD_COMMAND_EXCERPT
1
SEARCHD_COMMAND_UPDATE
2
SEARCHD_COMMAND_KEYWORDS
3
SEARCHD_COMMAND_PERSIST
4
SEARCHD_COMMAND_STATUS
5
SEARCHD_COMMAND_FLUSHATTRS
7
VER_COMMAND_SEARCH
281
VER_COMMAND_EXCERPT
259
VER_COMMAND_UPDATE
258
VER_COMMAND_KEYWORDS
256
VER_COMMAND_STATUS
256
VER_COMMAND_QUERY
256
VER_COMMAND_FLUSHATTRS
256
SEARCHD_OK
0
SEARCHD_ERROR
1
SEARCHD_RETRY
2
SEARCHD_WARNING
3
SPH_MATCH_ALL
0
SPH_MATCH_ANY
1
SPH_MATCH_PHRASE
2
SPH_MATCH_BOOLEAN
3
SPH_MATCH_EXTENDED
4
SPH_MATCH_FULLSCAN
5
SPH_MATCH_EXTENDED2
6
SPH_RANK_PROXIMITY_BM25
0
SPH_RANK_BM25
1
SPH_RANK_NONE
2
SPH_RANK_WORDCOUNT
3
SPH_RANK_PROXIMITY
4
SPH_RANK_MATCHANY
5
SPH_RANK_FIELDMASK
6
SPH_RANK_SPH04
7
SPH_RANK_EXPR
8
SPH_RANK_TOTAL
9
SPH_SORT_RELEVANCE
0
SPH_SORT_ATTR_DESC
1
SPH_SORT_ATTR_ASC
2
SPH_SORT_TIME_SEGMENTS
3
SPH_SORT_EXTENDED
4
SPH_SORT_EXPR
5
SPH_FILTER_VALUES
0
SPH_FILTER_RANGE
1
SPH_FILTER_FLOATRANGE
2
SPH_ATTR_INTEGER
1
SPH_ATTR_TIMESTAMP
2
SPH_ATTR_ORDINAL
3
SPH_ATTR_BOOL
4
SPH_ATTR_FLOAT
5
SPH_ATTR_BIGINT
6
SPH_ATTR_STRING
7
SPH_ATTR_MULTI
1073741825
SPH_ATTR_MULTI64
1073741826
SPH_GROUPBY_DAY
0
SPH_GROUPBY_WEEK
1
SPH_GROUPBY_MONTH
2
SPH_GROUPBY_YEAR
3
SPH_GROUPBY_ATTR
4
SPH_GROUPBY_ATTRPAIR
5
"
Fatal error: Uncaught exception 'think\exception\ErrorException' with message 'file_put_contents(): open_basedir restriction in effect. File(error.html) is not within the allowed path(s): (/www/wwwroot/sun.tpsns.com/:/tmp/)' in /www/wwwroot/sun.tpsns.com/thinkphp/library/think/exception/Handle.php:190
Stack trace:
#0 [internal function]: think\Error::appError(2, 'file_put_conten...', '/www/wwwroot/su...', 190, Array)
#1 /www/wwwroot/sun.tpsns.com/thinkphp/library/think/exception/Handle.php(190): file_put_contents('error.html', '<!DOCTYPE html>...')
#2 /www/wwwroot/sun.tpsns.com/thinkphp/library/think/exception/Handle.php(96): think\exception\Handle->convertExceptionToResponse(Object(think\exception\ErrorException))
#3 /www/wwwroot/sun.tpsns.com/thinkphp/library/think/Error.php(53): think\exception\Handle->render(Object(think\exception\ErrorException))
#4 /www/wwwroot/sun.tpsns.com/thinkphp/library/think/Error.php(90): think\Error::appException(Object(think\exception\ErrorException))
#5 [internal function]: think\Error::ap in /www/wwwroot/sun.tpsns.com/thinkphp/library/think/exception/Handle.php on line 190