ID: 46891 Updated by: [email protected] 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
