ircmaxell/RandomLib

Serialization of 'Closure' is not allowed Exception

akuzemchak opened this issue · 2 comments

I came across this issue while trying to use this library in a small Silex application. The following line in MicroTime.php will throw an exception if there are any Closures in your debug_backtrace, as they can't be serialized:

$state .= serialize(debug_backtrace(false));

Thanks!

Fixed in the latest commit...

Awesome, thank you!