Menu

#5 Empty object as result from Deserialize

v1.0_(example)
open
None
5
2021-04-28
2021-04-26
No

Hi, sorry to bother you, I would like help with something I consider an error... I have the following serialized PHP string on a string from MySQL db:

a:1:{i:0;O:8:"stdClass":5:{s:2:"id";s:11:"fee-5-money";s:4:"name";s:31:"Anuncio 4 semanas (Web) Houston";s:11:"description";s:25:"4 Weeks Ad (Web Only) HOU";s:12:"payment_type";s:5:"money";s:6:"amount";d:45;}}

I'm expecting to get an object similar to this:

[{"id":"fee-2-money","name":"Anuncio 2 semanas (Web) Houston","description":"2 Weeks Ad (Web) all Houston Area","payment_type":"money","amount":25}]

Instead what I get is an empty array like this:

[""]

Is this a bug? Thank you so much for your help!

Discussion

  • Matt Palmerlee

    Matt Palmerlee - 2021-04-27

    Hello, I apologize this library is no longer maintained, I'm surprised anyone is using it still. If you need PHP serialization capability in .NET for some reason and this is your only option you are more than welcome to fix the bug and provide the updated source to re-post to SF.net, good luck!
    -Matt

     
    • Guillermo J Perez

      thank you.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.