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 — Skip uninitialized/unset typed properties returned from __sleep() in php 8.0+ · Issue #273 · igbinary/igbinary

Skip uninitialized/unset typed properties returned from __sleep() in php 8.0+ #273

New issue
Copy link
New issue
Copy link
Open
#423
Open
Skip uninitialized/unset typed properties returned from __sleep() in php 8.0+#273
#423
Copy link
Labels
enhancement

Description

@TysonAndre
TysonAndre
opened on Apr 24, 2020
Issue body actions

And not php 7.4, to make igbinary interchangable for php's serialize()/unserialize() within the latest 7.4 patch releases and within 8.0

php/php-src#5413

Reacted by Tac Tacelosky and Pavol Kirschbaum

Activity

  1. TysonAndre
    added
    enhancement
    on Apr 24, 2020
  2. heddn commented on Jul 13, 2020

    @heddn
    heddn
    on Jul 13, 2020
    More actions

    Or is this my cause of https://git.mtech-llc.com/open-source/drupal-docker/-/jobs/5770#L708?

  3. kissifrot commented on Apr 14, 2022

    @kissifrot
    kissifrot
    on Apr 14, 2022
    More actions

    That'd be effectively cool, as we're facing this with when trying to serialize Doctrine entities in cache, with error messages such as
    Typed property Proxies\\__CG_l\\Entity\\MyEntity::$ must not be accessed before initialization (in __sleep)
    (and yes there is no property indicated which is even easier 😅 )

  4. akalineskou commented on May 10, 2022

    @akalineskou
    akalineskou
    on May 10, 2022
    More actions

    I'm having this same issue as @kissifrot and I have to disable marshalling with igbinary because of it

  5. bobvandevijver commented on Jun 7, 2023

    @bobvandevijver
    bobvandevijver
    on Jun 7, 2023
    More actions

    Just started exploring using igbinary as improvement for our cache serialization, but was being bit by this. Guess serializing doctrine proxies is bad practice which we need to resolve anyways, but unfortunately for now it is blocking this extension for us.

  6. pauci commented on Jan 29, 2024

    @pauci
    pauci
    on Jan 29, 2024
    More actions

    Just got hit by this when adding types to doctrine entities. Seems that it affects only entities which use doctrine 2nd level cache.

    Now I'm considering whether to switch from igbinary_serialize to serialize which would increase cache load, or step back from using types in cached doctrine entites.

  7. andypost commented on Oct 6, 2025

    @andypost
    andypost
    on Oct 6, 2025
    More actions

    PHP 8.5 reverted deprecation of __sleep() php/php-src@fc35396

  8. tricky commented on Oct 6, 2025

    @tricky
    tricky
    on Oct 6, 2025
    Member
    More actions

    I will look into this, perhaps simply ignoring undefined properties will be enough.

  9. 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

    enhancement

    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.