/** * Reads from a serialized file. * * @param string $uPath the file path * @param string|null $uKeyphase the key * * @return bool|mixed the unserialized object */ public static function readSerialize($uPath, $uKeyphase = null) { $tContent = self::read($uPath); //! ambiguous return value if ($tContent === false) { return false; } if ($uKeyphase !== null && strlen($uKeyphase) > 0) { $tContent = Utils::decrypt($tContent, $uKeyphase); } return unserialize($tContent); }