Skip to content

Fatal error: Invalid serialization data * #61

@tomasstrejcek

Description

@tomasstrejcek

in method RedisStorage::getUnserializedValue, it should be possible to handle possible errors without crashing the whole app

return @unserialize($stored[1]); // intentionally @

could be encapsuled in try {} catch (Throwable $t) {} - to catch it and log it at least in php7 (7.1 alpha 3 +)

we are currently dealing with error "Invalid serialization data for DateTime object", and want to discuss possible/best solutions for this, so we cant fork it then, test in production and send pull request

thanks

(only way to reproduce it we have come up with is this:

php

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions