polyfill icon indicating copy to clipboard operation
polyfill copied to clipboard

Serialize/Unserialize behavior inconsistent with the extension

Open yurahaid opened this issue 4 years ago • 0 comments

HI there!

When extension is enabled:

serialize(new Ds\Set()); // result - 'C:6:"Ds\Set":0:{}'

when extension is disabled

serialize(new Ds\Set()); // result -  'O:6:"Ds\Set":1:{s:13:" Ds\Set table";O:6:"Ds\Map":2:{s:13:" Ds\Mappairs";a:0:{}s:16:" Ds\Map capacity";i:8;}}'

And if serialize data when extension is enabled and unserialize when extension is disabled(or opposite) i have warning Warning: Class Ds\Set has no unserializer

yurahaid avatar Apr 26 '20 17:04 yurahaid