#46891 [Opn->Csd]: Make DateTime (and any other internal class) serializable

From: Date: Wed, 17 Dec 2008 21:29:18 +0000
Subject: #46891 [Opn->Csd]: Make DateTime (and any other internal class) serializable
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-132103@lists.php.net to get a copy of this message
ID: 46891 Updated by: derick@php.net Reported By: markus at malkusch dot de -Status: Open +Status: Closed Bug Type: Feature/Change Request Operating System: Linux PHP Version: 5.2.8 New Comment: This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. This has already been implemented for PHP 5.3. Previous Comments: ------------------------------------------------------------------------ [2008-12-17 21:19:23] markus at malkusch dot de Description: ------------ DateTime is not serializable and therefore can't be stored in sessions. Could you please make Datetime (and as much other internal classes as possible) serializable? Thank you very much. Reproduce code: --------------- @see Bug 42239 Expected result: ---------------- At least PHP should tell a more verbose error message. The warning "The DateTime object has not been correctly initialized by its constructor" gives a very small hint to the serialization problem. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=46891&edit=1

« previous php.bugs (#132103) next »