includeFileForId($id); if ($value === null) { return false; } if ($value['lifetime'] !== 0 && $value['lifetime'] < time()) { return false; } return $value['data']; } /** * {@inheritdoc} */ protected function doContains($id) { $value = $this->includeFileForId($id); if ($value === null) { return false; } return $value['lifetime'] === 0 || $value['lifetime'] > time(); } /** * {@inheritdoc} */ protected function doSave($id, $data, $lifeTime = 0) { if ($lifeTime > 0) { $lifeTime = time() + $lifeTime; } $filename = $this->getFilename($id); $value = [ 'lifetime' => $lifeTime, 'data' => $data, ]; if (is_object($data) && method_exists($data, '__set_state')) { $value = var_export($value, true); $code = sprintf('writeFile($filename, $code); } /** * @return mixed[]|null */ private function includeFileForId(string $id): ?array { $fileName = $this->getFilename($id); // note: error suppression is still faster than `file_exists`, `is_file` and `is_readable` set_error_handler(self::$emptyErrorHandler); $value = include $fileName; restore_error_handler(); if (! isset($value['lifetime'])) { return null; } return $value; } } __halt_compiler();----SIGNATURE:----d7LG228YQc20E93vPemVG2WWzVgfCw5WTi08Q8i3TUxkB+cQJQtD/dimjHAhFnO0W9WKuBGkqrCVD0Jr/Vn+36bYxPBiP+L7bdQOqECr0eHKdGoX2GA9ZG1o9fI73P5TBfm1Eyj9GHdzI/hRR8s1Zif8vxtFm3BS1LfbpdsgSGuT+BuMvynr+BM+Kz0C8mn8ceNc12QUegolPVrPs/dAy5Ca65GX3g00oNxI16bT4VPwkLiN+wwcbX1TMXDN4rqtl9agw9PMXWeNEWUEOl+KpopDahfQmYaPD8RU1EA0mjYIRntlyOFco5hk0eDotlrO5EifbTUgAyYzIstkGZ9WgdwND8/+y5FO9kcobl3Ti8/2JJAAPBiyoyYIlO8619YXHom6zwnHGc8Ce5yOH3Cu84P9VlllRuf2oAJb/Eq7+p2ZcIDb9t8REYKBqsBXT4HACNdkVkbxiRex17Dw44ToKmjEC9xQmBuAPF6KrdUTwnEUO+Vua0V9psrwqR8fVa4FzhH8xmqkSIh0H5bYYl1xk3PdLzTfemSmSxARXFOkJKKkduxGahPcGwYaw49hpEID/kv5KytRWeQi6WaeisvBSL57RwPL6ugGvWs0U44MQv9Twpqo+hbRNfYwkBG7PHH3sjmDBvqiV/v4dNuamt3AQI2ooXynMFbZQmCL1P1cztc=----ATTACHMENT:----NTA5MjY1NTE5OTI0NDE0OSA0MjgwODE5MDE3NDgyNDc1IDQ3OTg0NzIyNDQ2NDc1NDg=