|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2015-04-29 11:51 UTC] intercity at massiveimpact dot ch
[2016-10-19 11:41 UTC] adam dot conway at carus dot com
[2016-10-19 11:43 UTC] requinix@php.net
-Status: Open
+Status: Feedback
[2016-10-19 11:43 UTC] requinix@php.net
[2016-10-30 04:22 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 14:00:01 2025 UTC |
Description: ------------ On the Debian Wheezy distribution, since the last update of PHP5 to the version 5.4.35-0+deb7u2, the serialization of DateTime seems to be broken. The problem occurs periodically and is reproducible with difficulties. In my test environment, the problem occurs when I want to read data that are stored into the Redis Server. Examples: During the authentication, when the problem occurs, the stack trace is : [{"message":"Error: Invalid serialization data for DateTime object in \/var\/www\/XXXX\/front\/vendor\/symfony\/symfony\/src\/Symfony\/Component\/Security\/Core\/Authentication\/Token\/AbstractToken.php line 163","class":"Symfony\\Component\\Debug\\Exception\\FatalErrorException","trace":[{"namespace":"","short_class":"","class":"","type":"","function":"","file":"\/var\/www\/XXXX\/front\/vendor\/symfony\/symfony\/src\/Symfony\/Component\/Security\/Core\/Authentication\/Token\/AbstractToken.php","line":163,"args":[]}]}] Another example during data retrieval from cache: {"message":"Error: Invalid serialization data for DateTime object in \/var\/www\/XXXX\/front\/src\/XXXX\/APIBundle\/Service\/YYYYService.php line 144","class":"Symfony\\Component\\Debug\\Exception\\FatalErrorException","trace":[{"namespace":"","short_class":"","class":"","type":"","function":"","file":"\/var\/www\/XXXX\/front\/src\/XXXX\/APIBundle\/Service\/YYYYService.php","line":144,"args":[]}]}] I've found a recent bug report in the EZPublish project that seems to be built on Symfony 2 components: https://jira.ez.no/browse/EZP-23713. Attached files to this issue are interesting because we have a valid and an invalid DateTime serialization. Then I've downgraded my Debian Wheezy PHP5 package to this version : 5.4.4-14+deb7u14 , and the problem doesn't exists.