Skip to content

Trigger error when trying to serialize Object with "__sleep" #377

@kruggs

Description

@kruggs

Hi,
I'm using

  • igbinary 3.2.14
  • with a symfony 6.2 project
  • and doctrine dbal 3.6.1
  • orm 2.14.1
  • php 8.2.2

While i was testing our new cache class, i noticed an issue with doctrine and igbinary.

Typed property Proxies\__CG__\App\Entity\BusinessUnit::$ must not be accessed before initialization (in __sleep)

This is trigger with igbinary_serialize($object).
The function serialize($object) native php is working and not does trigger any error.

Php fixed the issue in 7.4.6 (change log here)
and the bugfix thread : here

I have to stop to use igbinary because of this issue :(
Could it be possible to have a look and fix it ?
I'm not an expert but i guess it should help to check the fix of php to fix igbinary ?

Thanks
Radyium

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions