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
Description
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
heddn commented on Jul 13, 2020
kissifrot commented on Apr 14, 2022
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 😅 )
akalineskou commented on May 10, 2022
I'm having this same issue as @kissifrot and I have to disable marshalling with igbinary because of it
bobvandevijver commented on Jun 7, 2023
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.
pauci commented on Jan 29, 2024
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.
andypost commented on Oct 6, 2025
tricky commented on Oct 6, 2025
I will look into this, perhaps simply ignoring undefined properties will be enough.
Metadata
Metadata
Development
No branches or pull requestsIssue actions