#41334 [Asn->Csd]: Enable serialization of DateTime objects
| From: | derick@php.net | Date: | Mon, 07 Jul 2008 19:54:20 +0000 |
| Subject: | #41334 [Asn->Csd]: Enable serialization of DateTime objects | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-126350@lists.php.net to get a copy of this message | ||
ID: 41334
Updated by: derick@php.net
Reported By: mail at philipp-wagner dot com
-Status: Assigned
+Status: Closed
Bug Type: Feature/Change Request
Operating System: all
PHP Version: 5.2.2
Assigned To: derick
New Comment:
This has been implemented some time ago - for PHP 5.3.
Previous Comments:
------------------------------------------------------------------------
[2007-05-08 21:33:08] mail at philipp-wagner dot com
Description:
------------
As noted in bug #39821 and the documentation, DateTime objects cannot
be serialized.
Still, serializing such objects would be of much use. I use these
objects heavily, as well as serialize(). Currently I have to write a
__destruct() method which saves the DateTime into a string object
variable and read it back at __wakeup(). This causes much unnecessary
work.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=41334&edit=1