[php-maint] Bug#774975: Serialization issue on DateTime objects by using PHP 5.4.35-0+deb7u2

COTONEA, Loic loic.cotonea at sogeti.com
Fri Jan 9 16:06:52 UTC 2015


Package: php5
Version: 5.4.35-0+deb7u2


Dear Maintainer,

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.


-- System Information:
Debian Release: 7.7
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.11-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash

Versions of packages php5 depends on:
ii  libapache2-mod-php5  5.4.35-0+deb7u2
ii  php5-common          5.4.35-0+deb7u2

php5 recommends no packages.

php5 suggests no packages.

-- no debconf information


Cordialement,

                                                              _
Loïc Cotonéa | Architecte | Advanced Technology Center

Ligne directe: +33(0)2 23 45 59 37
Skype: l.cotonea.sogeti



More information about the pkg-php-maint mailing list