Bug #68889 [NEW]: Serialization issue on DateTime objects by using PHP 5.4.35-0+deb7u2

From: Date: Thu, 22 Jan 2015 14:47:31 +0000
Subject: Bug #68889 [NEW]: Serialization issue on DateTime objects by using PHP 5.4.35-0+deb7u2
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-190150@lists.php.net to get a copy of this message
From:             loic dot cotonea at sogeti dot com
Operating system: Debian Wheezy
PHP version:      5.4.36
Package:          Reflection related
Bug Type:         Bug
Bug description:Serialization issue on DateTime objects by using PHP 5.4.35-0+deb7u2

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.




-- 
Edit bug report at https://bugs.php.net/bug.php?id=68889&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=68889&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=68889&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=68889&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=68889&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=68889&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=68889&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=68889&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=68889&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=68889&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=68889&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=68889&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=68889&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=68889&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=68889&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=68889&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=68889&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=68889&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=68889&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=68889&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=68889&r=mysqlcfg



Thread (5 messages)

« previous php.bugs (#190150) next »