Doc #79880 [Ver->Csd]: Fatal error: Uncaught Error: Invalid serialization data for DateTime object

From: Date: Fri, 04 Dec 2020 13:14:10 +0000
Subject: Doc #79880 [Ver->Csd]: Fatal error: Uncaught Error: Invalid serialization data for DateTime object
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-18198@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=79880&edit=1 ID: 79880 Updated by: phpdocbot@php.net Reported by: isharafa at unb dot ca Summary: Fatal error: Uncaught Error: Invalid serialization data for DateTime object -Status: Verified +Status: Closed Type: Documentation Problem Package: Date/time related Operating System: Ubuntu PHP Version: 7.4.8 Assigned To: cmb Block user comment: N Private report: N New Comment: Automatic comment on behalf of cmb Revision: http://git.php.net/?p=doc/en.git;a=commit;h=e77680d775f2da259a5080e6250575c23cdc37e2 Log: Fix #79880: Fatal error: Uncaught Error: Invalid serialization data for DateTime object Previous Comments: ------------------------------------------------------------------------ [2020-12-04 13:12:57] cmb@php.net Automatic comment from SVN on behalf of cmb Revision: http://svn.php.net/viewvc/?view=revision&revision=351869 Log: Fix #79880: Fatal error: Uncaught Error: Invalid serialization data for DateTime object ------------------------------------------------------------------------ [2020-12-04 13:09:39] cmb@php.net Actually, this is a documentation issue. ------------------------------------------------------------------------ [2020-08-06 10:08:59] igor dot ozerskii at currencysolutions dot com I have a similar problem when upgrading to 7.4.8 from 7.3.20, an error appeared. [Error] Invalid serialization data for DateTime object (0) /home/bitrix/ext_www/htdocs/bitrix/modules/main/lib/data/cacheengineredis.php:366 # 0: DateTime -> __ wakeup () # 1: Redis-> get (string) /home/bitrix/ext_www/htdocs/bitrix/modules/main/lib/data/cacheengineredis.php:366 # 2: Bitrix \ Main \ Data \ CacheEngineRedis-> read (array, string, string, string, integer) environment Docker PHP - php:7.4-fpm-alpine and FROM php:7.3-fpm-alpine Redis Extension - develop branch and try branch master (github.com/ phpredis/ phpredis/ ) Redis server - 5.0.9 php:7.3 - work fine ------------------------------------------------------------------------ [2020-07-22 14:42:16] nikic@php.net I still don't understand what the supposed bug here is. Unserialization throwing exceptions is completely normal. You get a fatal error because you did not catch the exception. ------------------------------------------------------------------------ [2020-07-22 14:16:45] isharafa at unb dot ca When I modify the datetime object, it just return false, but with this specific test case I get the Fatal Error. That's why I reported this bug. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=79880 -- Edit this bug report at https://bugs.php.net/bug.php?id=79880&edit=1

« previous php.doc.bugs (#18198) next »