Re: Problem When Serializing Array With Multiline Text
- From: Chung Leong <chernyshevsky@xxxxxxxxxxx>
- Date: 30 Apr 2007 04:57:27 -0700
On Apr 30, 1:20 am, dawnerd <dawn...@xxxxxxxxx> wrote:
Hello everyone.
I have a question, or problem if you will, that I'm sure someone knows
the answer to. I have a database that stores information on a given
user. The information is stored in a serialized array. This works
flawlessly when using only single line text. When I tried to store
multiline text, the problem arose.
When the serialized data is deserialized, the array breaks. Any
suggestions?
Compare the length of the serialized string before and after. I bet
you it's a CRLF vs CR issue. The lengths of strings are stored in the
serialization data. If it loses or gains a character upon retrieval,
then unserial() won't work.
.
- References:
- Problem When Serializing Array With Multiline Text
- From: dawnerd
- Problem When Serializing Array With Multiline Text
- Prev by Date: Re: Manipulating binary data
- Next by Date: Unexpected absence of expected warning
- Previous by thread: Re: Problem When Serializing Array With Multiline Text
- Next by thread: RegEx - Chk for special chars
- Index(es):