Jump to content


serialize/unserialize problem

  • Please log in to reply
2 replies to this topic

#1 neds75

  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 15 July 2006 - 12:01 AM

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.


#2 redarrow

  • Members
  • PipPipPip
  • Advanced Member
  • 7,308 posts
  • Locationlondon

Posted 15 July 2006 - 12:08 AM

Your have to post some code to understand what your doing, that we can help ok.
Wish i new all about php DAM i will have to learn

#3 ShogunWarrior

  • Members
  • PipPipPip
  • Advanced Member
  • 528 posts
  • LocationIreland

Posted 15 July 2006 - 01:34 AM

Probably line feeds.
You could use a regex to automatically convert the data between platforms if that's the problem, although not very graceful.
<a href="http://www.daviddora...nmedia.com/">My New Site/Blog</a> | <a href="http://www.daviddora...m/check/">Check your page for broken links/images/scripts</a>

Zend Certified Engineer
Follow me on Twitter: http://twitter.com/davidd

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users