Issue Bug Closed

#110034unserialize() warnings in PHP >=8.3

Benjamin Franzke 06/10/26, 10:08 updated 08/11/26, 08:50

Description

Nightly tests fail because PHP 8.3 throws warnings for unconsumed data

> 8.3.0 Now emits E_WARNING when the input string has unconsumed data.

https://git.typo3.org/typo3/CI/cms/-/pipelines/103257

Wed, 10 Jun 2026 01:05:19 +0000 [WARNING] request="1dfe6ab3365dd" component="TYPO3.CMS.Core.Error.ErrorHandler": Core: Error handler (BE): PHP Warning: unserialize(): Extra data starting at offset 51736 of 51832 bytes in /builds/typo3/CI/cms/typo3/sysext/core/Classes/Serializer/AuthenticatedMessageDeserializer.php line 61 
Wed, 10 Jun 2026 01:05:19 +0000 [CRITICAL] request="1dfe6ab3365dd" component="TYPO3.CMS.Core.Error.ProductionExceptionHandler": Core: Exception handler (WEB: BE): TYPO3\CMS\Core\DependencyInjection\ContainerException, code #1520175002, file /builds/typo3/CI/cms/typo3/sysext/core/Classes/DependencyInjection/FailsafeContainer.php, line 103: Container entry "TYPO3\CMS\Core\Imaging\IconFactory" is part of a cyclic dependency chain. - {"mode":"WEB","application_mode":"BE","exception_class":"TYPO3\\CMS\\Core\\DependencyInjection\\ContainerException","exception_code":1520175002,"file":"/builds/typo3/CI/cms/typo3/sysext/core/Classes/DependencyInjection/FailsafeContainer.php","line":103,"message":"Container entry \"TYPO3\\CMS\\Core\\Imaging\\IconFactory\" is part of a cyclic dependency chain.","request_url":"http://web/?__typo3_install=&install%5Baction%5D=showDatabaseData","exception":null}

Reviews 3

History 610

  1. Chris Müller commented <span data-processor="relativetime" data-value="2026-06-10T13:00:00+00:00" > 06/10/26, 13:00 </span>

    I also experience a similar error when changing the encryption key (v13.4.31):

    PHP Warning: unserialize(): Extra data starting at offset 327516 of 327556 bytes in /var/www/html/vendor/typo3/cms-core/Classes/Serializer/AuthenticatedMessageDeserializer.php line 56
  2. Benjamin Franzke commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2026-06-10T14:25:10+00:00" > 06/10/26, 14:25 </span>

    Applied in changeset commit:d9f8582900b4a8d2b247cba9c0c8cc8bf3f60442.

  3. Benjamin Franzke changed subject Silence unserialize() warnings in PHP >=8.3 unserialize() warnings in PHP >=8.3 <span data-processor="relativetime" data-value="2026-06-15T16:42:45+00:00" > 06/15/26, 16:42 </span>