一段PHP代码的报错.
[2] ErrorException in File.php line 159file_put_contents(/home/data/www.0933.me/runtime/cache/de/bd137b54de6dc446dd454545803aab.php): failed to open stream: No space left on device
if ($this->tag && !is_file($filename)) {
$first = true;
}
$data = serialize($value);
if ($this->options["data_compress"] && function_exists("gzcompress")) {
//数据压缩
$data = gzcompress($data, 3);
}
$data = "<?php
//" . sprintf("%012d", $expire) . "
exit();?>
" . $data;
$result = file_put_contents($filename, $data);
if ($result) {
isset($first) && $this->setTagItem($filename);
clearstatcache();
return true;
} else {
return false;
}
}
Call Stack
in File.php line 159
at Error::appError(2, "file_put_contents(/h...", "/home/data/www.0933....", 159, ["name" => "share_1316181", "value" => ["id" => 1316181, "title" => "薪酬管理第11版...", "keywords" => "薪酬,管理,高清...", ...], "expire" => 86400000000, ...])
at file_put_contents("/home/data/www.0933....", "<?php //086400000000...") in File.php line 159
at File->set("share_1316181", ["id" => 1316181, "title" => "薪酬管理第11版...", "keywords" => "薪酬,管理,高清...", ...], 86400000000) in Cache.php line 148
at Cache::set("share_1316181", ["id" => 1316181, "title" => "薪酬管理第11版...", "keywords" => "薪酬,管理,高清...", ...], 86400000000) in Query.php line 2588
at Query->cacheData("share_1316181", ["id" => 1316181, "title" => "薪酬管理第11版...", "keywords" => "薪酬,管理,高清...", ...], ["key" => "share_1316181", "expire" => 86400000000, "tag" => null]) in Query.php line 2697
at Query->find() in Computer.php line 252
at Computer->share1("1316181")
at ReflectionMethod->invokeArgs(object(Computer), ["1316181"]) in App.php line 342
at App::invokeMethod([object(Computer), "share1"], []) in App.php line 610
at App::module(["Index", "Computer", "share1"], ["app_host" => "", "app_debug" => true, "app_trace" => false, ...], false) in App.php line 455
at App::exec(["type" => "module", "module" => ["Index", "Computer", "share1"], "convert" => false], ["app_host" => "", "app_debug" => true, "app_trace" => false, ...]) in App.php line 138
at App::run() in start.php line 19
at require("/home/data/www.0933....") in index.php line 51
Environment Variables
GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USERwww
HOME/home/www
HTTP_X_FIKKER1.1 localhost.localdomain (random:642725 Fikker/Webcache/3.7.6)
HTTP_ACCEPT_ENCODINGgzip
HTTP_X_REAL_IP221.216.119.45
HTTP_X_FORWARDED_FOR221.216.119.45
HTTP_ACCEPT_LANGUAGEzh-CN,zh;q=0.9,en-US;q=0.8,en;q=0.7
HTTP_REFERERhttps://www.baidu.com/link?url=on5fKZCTnvSx9goLtBZub3_C-BwacgdF5M_NS85rZ2S02ZwSK7f1M2XB3T2tjLVy&wd=&eqid=b8edea57000ba51b000000025dc8897b
HTTP_SEC_FETCH_SITEcross-site
HTTP_ACCEPTtext/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8
HTTP_SEC_FETCH_MODEnavigate
HTTP_USER_AGENTMozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.100 Safari/537.36 OPR/63.0.3368.43
HTTP_UPGRADE_INSECURE_REQUESTS1
HTTP_CONNECTIONkeep-alive
HTTP_HOSTwww.0933.me
PHP_ADMIN_VALUEopen_basedir=/home/data/www.0933.me/public/:/tmp/:/proc/:/home/
REDIRECT_STATUS200
SERVER_NAMEwww.0933.me
SERVER_PORT443
SERVER_ADDR172.31.150.12
REMOTE_PORT19494
REMOTE_ADDR27.255.79.184
SERVER_SOFTWAREnginx/1.14.1
GATEWAY_INTERFACECGI/1.1
HTTPSon
REQUEST_SCHEMEhttps
SERVER_PROTOCOLHTTP/1.1
DOCUMENT_ROOT/home/data/www.0933.me/public
DOCUMENT_URI/index.php
REQUEST_URI/share/1316181.html
SCRIPT_NAME/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHODGET
QUERY_STRINGs=/share/1316181.html
SCRIPT_FILENAME/home/data/www.0933.me/public/index.php
FCGI_ROLERESPONDER
PHP_SELF/index.php
REQUEST_TIME_FLOAT1573424061.3267
REQUEST_TIME1573424061
PATH_INFO/share/1316181.html
Environment Variablesempty
ThinkPHP Constants
APP_NAMEapplication
APP_PATH/home/data/www.0933.me/public/./../application/
APP_AUTO_BUILDtrue
APP_DEBUGtrue
__ROOT__
__PUBLIC__
UPLOAD_DIR/uploads
WX_PAYwxpay
ALI_PAYalipay
IS_MOBILEfalse
THINK_VERSION5.0.24
THINK_START_TIME1573424061.3273
THINK_START_MEM396648
EXT.php
DS/
THINK_PATH/home/data/www.0933.me/fw/
LIB_PATH/home/data/www.0933.me/fw/library/
CORE_PATH/home/data/www.0933.me/fw/library/think/
TRAIT_PATH/home/data/www.0933.me/fw/library/traits/
ROOT_PATH/home/data/www.0933.me/
EXTEND_PATH/home/data/www.0933.me/extend/
VENDOR_PATH/home/data/www.0933.me/vendor/
RUNTIME_PATH/home/data/www.0933.me/runtime/
LOG_PATH/home/data/www.0933.me/runtime/log/
CACHE_PATH/home/data/www.0933.me/runtime/cache/
TEMP_PATH/home/data/www.0933.me/runtime/temp/
CONF_PATH/home/data/www.0933.me/public/./../application/
CONF_EXT.php
ENV_PREFIXPHP_
IS_CLIfalse
IS_WINfalse
ThinkPHP V5.0.24 { 十年磨一剑-为API开发设计的高性能框架 }
以上是 一段PHP代码的报错. 的全部内容, 来源链接: utcz.com/z/510621.html