/**
* {@inheritdoc}
*/
protected function doHave(string $id)
{
$file = $this->getFile($id);
return is_file($file) && (@filemtime($file) > time() || $this->doFetch([$id]));
}
/**
* {@inheritdoc}
*/
protected function doSave(array $values, int $lifetime)
{
$expiresAt = $lifetime ? (time() + $lifetime) : 0;
$values = $this->marshaller->marshall($values, $failed);
foreach ($values as $id => $value) {
if (!$this->write($this->getFile($id, true), $expiresAt."\n".rawurlencode($id)."\n".$value, $expiresAt)) {
$failed[] = $id;
}
}
if ($failed && !is_writable($this->directory)) {
throw new CacheException(sprintf('Cache directory is not writable (%s).', $this->directory));
}
return $failed;
}
private function getFileKey(string $file): string
{
if (!$h = @fopen($file, 'r')) {
return '';
}
fgets($h); // expiry
$encodedKey = fgets($h);
fclose($h);
"Allowed memory size of 134217728 bytes exhausted (tried to allocate 51247872 bytes)"
}
/**
* Special case to deal with Fatal errors and the like.
*
* @return void
*/
public function handleShutdown()
{
// If we reached this step, we are in shutdown handler.
// An exception thrown in a shutdown handler will not be propagated
// to the exception handler. Pass that information along.
$this->canThrowExceptions = false;
$error = $this->system->getLastError();
if ($error && Misc::isLevelFatal($error['type'])) {
// If there was a fatal error,
// it was not handled in handleError yet.
$this->allowQuit = false;
$this->handleError(
$error['type'],
$error['message'],
$error['file'],
$error['line']
);
}
}
/**
* @param Throwable $exception
*
* @return Inspector
*/
private function getInspector($exception)
{
return new Inspector($exception);
}
/**
* Resolves the giving handler.
| Key | Value |
| zip | "管理DATA/F-建築・設備関係/10-中規模工事(後日承認)"
|
| Key | Value |
| PATH | "/usr/local/bin:/bin:/usr/bin"
|
| HTTP_ACCEPT | "*/*"
|
| HTTP_ACCEPT_ENCODING | "gzip, br, zstd, deflate"
|
| HTTP_HOST | "root.welv51.org"
|
| HTTP_USER_AGENT | "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)"
|
| DOCUMENT_ROOT | "/home/welv51/domains/root.welv51.org/public_html"
|
| REMOTE_ADDR | "216.73.216.142"
|
| REMOTE_PORT | "31636"
|
| SERVER_ADDR | "163.44.176.12"
|
| SERVER_NAME | "root.welv51.org"
|
| SERVER_ADMIN | "webmaster@welv51.org"
|
| SERVER_PORT | "443"
|
| REQUEST_SCHEME | "https"
|
| REQUEST_URI | "/?zip=%E7%AE%A1%E7%90%86DATA%2FF-%E5%BB%BA%E7%AF%89%E3%83%BB%E8%A8%AD%E5%82%99%E9%96%A2%E4%BF%82%2F10-%E4%B8%AD%E8%A6%8F%E6%A8%A1%E5%B7%A5%E4%BA%8B%28%E5%BE%8C%E6%97%A5%E6%89%BF%E8%AA%8D%29"
|
| GEOIP_ADDR | "216.73.216.142"
|
| GEOIP_COUNTRY_CODE | "US"
|
| GEOIP_CONTINENT_CODE | "NA"
|
| HTTPS | "on"
|
| HTTP_AUTHORIZATION | "" |
| ISROOT | "1"
|
| X_SPDY | "HTTP2"
|
| SSL_PROTOCOL | "TLSv1.3"
|
| SSL_CIPHER | "TLS_AES_256_GCM_SHA384"
|
| SSL_CIPHER_USEKEYSIZE | "256"
|
| SSL_CIPHER_ALGKEYSIZE | "256"
|
| SCRIPT_FILENAME | "/home/welv51/domains/root.welv51.org/public_html/index.php"
|
| QUERY_STRING | "zip=%E7%AE%A1%E7%90%86DATA%2FF-%E5%BB%BA%E7%AF%89%E3%83%BB%E8%A8%AD%E5%82%99%E9%96%A2%E4%BF%82%2F10-%E4%B8%AD%E8%A6%8F%E6%A8%A1%E5%B7%A5%E4%BA%8B%28%E5%BE%8C%E6%97%A5%E6%89%BF%E8%AA%8D%29"
|
| SCRIPT_URI | "https://root.welv51.org/"
|
| SCRIPT_URL | "/"
|
| SCRIPT_NAME | "/index.php"
|
| SERVER_PROTOCOL | "HTTP/1.1"
|
| SERVER_SOFTWARE | "LiteSpeed"
|
| REQUEST_METHOD | "GET"
|
| X-LSCACHE | "on,crawler"
|
| PHP_SELF | "/index.php"
|
| REQUEST_TIME_FLOAT | 1776707377.0334
|
| REQUEST_TIME | 1776707377
|
| APP_DEBUG | "false"
|
| APP_LANGUAGE | "en"
|
| DISPLAY_READMES | "true"
|
| READMES_FIRST | "true"
|
| ZIP_DOWNLOADS | "true"
|
| GOOGLE_ANALYTICS_ID | "false"
|
| MATOMO_ANALYTICS_URL | "false"
|
| MATOMO_ANALYTICS_ID | "false"
|
| SORT_ORDER | "type"
|
| REVERSE_SORT | "false"
|
| Key | Value |
| APP_DEBUG | "false"
|
| APP_LANGUAGE | "en"
|
| DISPLAY_READMES | "true"
|
| READMES_FIRST | "true"
|
| ZIP_DOWNLOADS | "true"
|
| GOOGLE_ANALYTICS_ID | "false"
|
| MATOMO_ANALYTICS_URL | "false"
|
| MATOMO_ANALYTICS_ID | "false"
|
| SORT_ORDER | "type"
|
| REVERSE_SORT | "false"
|