[Bug 310845] Re: php5 serialize() function corrupt strings

2008-12-23 Thread Onno Benschop
** This bug is no longer flagged as a security issue -- php5 serialize() function corrupt strings https://bugs.launchpad.net/bugs/310845 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubunt

[Bug 310845] Re: php5 serialize() function corrupt strings

2008-12-23 Thread Onno Benschop
This is not a fail. I think you misunderstand what serialize() does. The purpose is to encapsulate the content of an object - be it a string, array or class - and store it in a single string variable. The PHP manual says this about serialize(): "Returns a string containing a byte-stream represen

[Bug 310845] Re: php5 serialize() function corrupt strings

2008-12-23 Thread sir_gon
OK, adding this lines, I got this output: /// object(Something)[1] public 'a' => string '123' (length=3) protected 'b' => string 'abc' (length=3) private 'c' => string 'xyz' (length=3) string 'O:9:"Something":3:{s:1:"a";s:3:"123";s:4:"�*�b";s:3:"abc";

[Bug 310845] Re: php5 serialize() function corrupt strings

2008-12-23 Thread Onno Benschop
Can you please show the actual output of the script? Also, your script doesn't show the unserialized version of the data. I suggest you add the following to your script and show the output: $blob = serialize($data) ; $new_data = unserialize($blob) ; var_dump($new_data) ; -- php5 serialize() fu