Page 1 of 1

Serialize - unserialize array problem

Posted: Fri Jul 14, 2006 7:02 pm
by neds75
I have problem with serialize/unserilize array of strings.

Actually, it works perfect when I do serialize/unserialize on computers with same OS(linux windown). But when I try to serialize data on linux and unserialize that data on windows(or contrary), I get error(notice). Serialized data are saved in file, no GET/POST or any other data, so magic gpc and magic gpc rantime is not problem(altought it is OFF on both computers).
addslashes/strip slashes is not problem too.

I lost few hours searchng net for this problem, but I wasn't lucky to find anythting interesting.

Is this bug, or maybe problem in some special characters like new lines/CR and so on? If so what woudl be the sollution.

Thanks

Posted: Fri Jul 14, 2006 7:42 pm
by Burrito
I've never heard of anythign like this being OS specific. You say that ser / un works fine if done on both machines. Why don't you try serializing a few small arrays from both machines then compare the strings to see if/how they differ.