php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #81118 Cache: Warning: igbinary_unserialize(): Function Symfony\Component\Cache\Marsha
Submitted: 2021-06-09 14:58 UTC Modified: 2021-06-10 00:12 UTC
From: flack at contentcontrol-berlin dot de Assigned: tandre (profile)
Status: Closed Package: igbinary (PECL)
PHP Version: 7.4.20 OS: Kubuntu 21.04
Private report: No CVE-ID: None
 [2021-06-09 14:58 UTC] flack at contentcontrol-berlin dot de
Description:
------------
I just saw that this problem in logfiles. The warning says:

Warning: igbinary_unserialize(): Function Symfony\Component\Cache\Marshaller\DefaultMarshaller::handleUnserializeCallback() hasn't defined the class it was called for in vendor/symfony/cache/Marshaller/DefaultMarshaller.php on line 80

The relevant part of the backtrace looks like this:

26 | 0.0239 | 3606944 | Symfony\Component\Cache\Adapter\MemcachedAdapter->getItem( $key = '222' ) | .../nap.php:126
27 | 0.0239 | 3607368 | Symfony\Component\Cache\Adapter\MemcachedAdapter->doFetch( $ids = [0 => 'napopenpsa:bxwiU:222'] ) | .../AbstractAdapterTrait.php:220
28 | 0.0240 | 3616360 | Symfony\Component\Cache\Marshaller\DefaultMarshaller->unmarshall( $value = '\000\000\000\002\024\001\021\002de\024\021\006\000\021\006sales/\006\001\021\aVerkauf\006\030\027\033midcom_helper_configuration\024\006\021\a_global\024\b\021\025schemadb_salesproject\0213file:/org/openpsa/sales/config/schemadb_default.inc\021\024schemadb_deliverable\021?file:/org/openpsa/sales/config/schemadb_deliverable_default.inc\021\034new_wikinote_wikiword_format\021\022note  to "%s" on  %s\021\032subscription_profit_months\006\f\021!subscription_invoice_day_of_month\004\021\ncalculator\021$org_openpsa' ) | .../MemcachedAdapter.php:276
29 | 0.0240 | 3616360 | igbinary_unserialize( $str = '\000\000\000\002\024\001\021\002de\024\021\006\000\021\006sales/\006\001\021\aVerkauf\006\030\027\033midcom_helper_configuration\024\006\021\a_global\024\b\021\025schemadb_salesproject\0213file:/org/openpsa/sales/config/schemadb_default.inc\021\024schemadb_deliverable\021?file:/org/openpsa/sales/config/schemadb_deliverable_default.inc\021\034new_wikinote_wikiword_format\021\022note  to "%s" on  %s\021\032subscription_profit_months\006\f\021!subscription_invoice_day_of_month\004\021\ncalculator\021$org_openpsa' ) | .../DefaultMarshaller.php:80




originally opened as https://github.com/symfony/symfony/issues/41641, I was told that this is an upstream problem


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2021-06-10 00:12 UTC] tandre@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: tandre
 [2021-06-10 00:12 UTC] tandre@php.net
Fixed in igbinary 3.2.3 in https://github.com/igbinary/igbinary/pull/331

Looking at https://github.com/symfony/symfony/blob/e34cd7dd2c6d0b30d24cad443b8f964daa841d71/src/Symfony/Component/Cache/Marshaller/DefaultMarshaller.php#L95-L98 - If you're using Symfony's DefaultMarshaller, it looks like it will throw because a class that existed in whatever serialized that data did not exist and could not be autoloaded when you unserialized the data.

- i.e. this warning may just be a symptom of a different issue in your application

The exceptions from user-defined callbacks will continue to be thrown in igbinary 3.2.3, but igbinary will no longer emit the notice (based on php's unserialize(), it is only intended to be emitted when configured callback for unserialize_callback_func didn't exist)
 [2021-06-10 00:13 UTC] tandre@php.net
I meant "it is only intended to be emitted when configured callback for unserialize_callback_func was called, failed to define the class, *and didn't throw*"
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Dec 30 14:01:28 2024 UTC