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:----oZiXQHVkwF28ZTUI3vrvetdiY9zcOGYCM4Dhqnq6UhgOjvlf0UdQhfnySPJJqEQT378dnW63Xg16RsEX8FrA9O96ZT3oiyv+mdwjVQPAVC4Mme/LjZ1yQpTITCNdHQ/JngU/goQ8g1hWBm81t4G9ursuLNl12lsZvVAks0t3iE1/86PgkuAg0sn+yOPk7QPtI+QdMl8IaA+ax11+sGc18M5WMpGvE2Ba+yYYmxwaiyfFbfNGd9NOKpGM6SV7Kx3DAomviy9pUxME4lQD/d8pW59/WiyV9GYSw27HQacn3lz3Hmy2TvQsi1VInmlBZgtz7SSXwAcisyoL/rjEk3uEbDgoKWPGWqpt2p8Df/aG4DRv2Jm2R/XxkR8kvTyfYeD4OzIKfzNaGzVAwk4btoYdSOh/EzlItsccsMU1+aYERMfYQJnghoxmgseZvIs+8OvWD0eBjE+H+o8dLcIHtx8hXKRn7T/gaNWOPhi7RdyQQ80Sk0F5zBk3RUwW5EorIiVaz2m4CRSuMwAWphou3K3xe05CB41uPI4exT1LRCFqKgFNN16cfJy9E2kHUrT9iv/zMqcKi+VwHZlkgUwW0Mi7UdJLIQ+4qfBFB1l6DBpBjSRx7fp0SdMBBQ8OB/PLW0pfh0c3sYorENaquzcq18xrxSWiF0V9Qx9um5BoeM9GEcc=----ATTACHMENT:----Mzg1MzE1MTk2OTQ4NjAxMCAzNzEzMjc4MDA5OTA5ODg3IDYzMjU0ODMxNzY2MjA5MTY=