GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Trigger error when trying to serialize Object with "__sleep" · Issue #377 · igbinary/igbinary

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

New issue
Copy link
New issue
Copy link
Open
#423
Open
Trigger error when trying to serialize Object with "__sleep"#377
#423
Copy link

Description

@kruggs
kruggs
opened on Mar 30, 2023
Issue body actions

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

Activity

  1. TysonAndre commented on Aug 1, 2023

    @TysonAndre
    TysonAndre
    on Aug 1, 2023
    Member
    More actions

    Caused by #273 - that issue should be fixed by a new igbinary release to match php serialize()'s behavior

  2. nicolas-grekas
    added a commit that references this issue on Oct 14, 2026

    Make __sleep() handling match serialize()

    3cb1546
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.