Req #53146 [Asn->Dup]: DateInterval Object cannot be serialized
Edit report at http://bugs.php.net/bug.php?id=53146&edit=1
ID: 53146
Updated by: stas@php.net
Reported by: j dot lutz at lutz-it dot com
Summary: DateInterval Object cannot be serialized
-Status: Assigned
+Status: Duplicate
Type: Feature/Change Request
Package: Date/time related
Operating System: Win7
PHP Version: 5.3.3
Assigned To: derick
Block user comment: N
Private report: N
New Comment:
same problem as bug #52113
Previous Comments:
------------------------------------------------------------------------
[2011-01-09 06:00:54] cataphract@php.net
Reassigning to Derick, as the patch I've written is under his
consideration.
------------------------------------------------------------------------
[2010-10-24 20:50:43] j dot lutz at lutz-it dot com
Description:
------------
Same problem as in #39821 regarding DateTime Object which was not
serializabel until v5.3.
After unserialize of a DateInterval-Object it's not possible to use the
method format() onto this object.
ErrorException [ Warning ]: DateInterval::format()
"The DateInterval object has not been correctly initialized by its
constructor"
but that would be very handy ;-)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=53146&edit=1
Thread (3 messages)