Issue Bug Closed

#79168Cache: Throw exception if unserialize in VariableFrontend->get() returns false

Christian Kuhn 01/05/17, 13:55 updated 10/26/17, 10:24

Description

In the VariableFrontend, values are serialized() in set(). Thus, it should NOT happen that unserialize() fails in get(). This only happens if the backend implementation or DB is broken.

Currently, this issue is not turned into an exception.

However, this is hard to fix if the value “boolean false” is serialized. This then can not be distinguished from the “unserialize was unsuccessful” case.

The only difference is that unserialize throws a notice in those cases – which are suppressed in the core …

I guess this can not be solved easily for now (and fiddling with the error reporting for each cache call isn’t nice), but wanted to have that behavior documented.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.