note 88122 rejected from function.serialize by danbrown

From: Date: Sun, 11 Jan 2009 23:45:56 +0000
Subject: note 88122 rejected from function.serialize by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-149076@lists.php.net to get a copy of this message
Note Submitter: bantam at banime dot com ---- This page claims on this page that it handles every type except resources, however as of php 5.3 alpha 3 it does not serialize closures. <? $test = function() { echo 'I love anonymous functions!'; }; var_dump($test); // object(Closure)#4 (0) { } $serialized = serialize($test); // Catchable fatal error: Serialization of 'Closure' is not allowed... ?> Hopefully support for this will appear in the future!

« previous php.notes (#149076) next »