note 88122 added to function.serialize
| From: | bantam at banime dot com | Date: | Sun, 11 Jan 2009 23:44:32 +0000 |
| Subject: | note 88122 added to function.serialize | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-149075@lists.php.net to get a copy of this message | ||
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!
----
Server IP: 209.41.74.194
Probable Submitter: 68.50.45.180
----
Manual Page -- http://www.php.net/manual/en/function.serialize.php
Edit -- https://master.php.net/note/edit/88122
Del: integrated -- https://master.php.net/note/delete/88122/integrated
Del: useless -- https://master.php.net/note/delete/88122/useless
Del: bad code -- https://master.php.net/note/delete/88122/bad+code
Del: spam -- https://master.php.net/note/delete/88122/spam
Del: non-english -- https://master.php.net/note/delete/88122/non-english
Del: in docs -- https://master.php.net/note/delete/88122/in+docs
Del: other reasons-- https://master.php.net/note/delete/88122
Reject -- https://master.php.net/note/reject/88122
Search -- https://master.php.net/manage/user-notes.php