neds75 Posted July 15, 2006 Share Posted July 15, 2006 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 Quote Link to comment https://forums.phpfreaks.com/topic/14627-serializeunserialize-problem/ Share on other sites More sharing options...
redarrow Posted July 15, 2006 Share Posted July 15, 2006 Your have to post some code to understand what your doing, that we can help ok. Quote Link to comment https://forums.phpfreaks.com/topic/14627-serializeunserialize-problem/#findComment-58195 Share on other sites More sharing options...
ShogunWarrior Posted July 15, 2006 Share Posted July 15, 2006 Probably line feeds.You could use a regex to automatically convert the data between platforms if that's the problem, although not very graceful. Quote Link to comment https://forums.phpfreaks.com/topic/14627-serializeunserialize-problem/#findComment-58241 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.