#41334 [Opn->Asn]: Enable serialization of DateTime objects
| From: | derick@php.net | Date: | Tue, 16 Oct 2007 08:05:58 +0000 |
| Subject: | #41334 [Opn->Asn]: Enable serialization of DateTime objects | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-118582@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: Open
+Status: Assigned
-Bug Type: Feature/Change Request
+Bug Type: Date/time related
Operating System: all
PHP Version: 5.2.2
-Assigned To:
+Assigned To: derick
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