Is it possible to serialize closures in PHP (even if it is not natively)?
Because PHP generates a Fatal Error
when trying to do so:
$func = function ($a, $b) { return $a + $b; }; serialize($func);
This generates:
Exception: Serialization of 'Closure' is not allowed