1
It is possible to serialize closures in PHP (even if it is not natively)?
Because PHP generates a Fatal Error
while trying to do so:
$func = function ($a, $b) { return $a + $b; }; serialize($func);
This generates:
Exception: Serialization of 'Closure' is not allowed
Related (Soen): http://stackoverflow.com/a/19730234/2256325
– Sergio
Useful: http://www.htmlist.com/development/extending-php-5-3-closures-with-serialization-and-reflection/
– bfavaretto