[PHP-WIN] serialize/unserialize and 32/64 bit integers

2010-05-03 Thread James Crow
Hello, I am having a problem with unserializing integers with Windows XP/PHP 5.2.11. The serialization takes place on a Linux x86_64 host. The values then gets passed to the Windows machine that is 32 bit. I think the problem is 32/64 bit related. If I serialize a number say 261234 on 3

Re: [PHP-WIN] serialize/unserialize and 32/64 bit integers

2010-05-03 Thread Pierre Joye
hi James, For the record: unlike the waste majority of unices, Windows x64 maximum integer in PHP (which uses the long C type ) is always 32bit, signed (2^31 +/-). Are you sure that you get s:10:"261234"? Using the latest 5.2 I got: d:261234; (windows) However, serialize is not supposed