php-windows Digest 3 May 2010 20:56:33 -0000 Issue 3801
Topics (messages 30067 through 30067):
serialize/unserialize and 32/64 bit integers
30067 by: James Crow
Administrivia:
To subscribe to the digest, e-mail:
php-windows-digest-subscr...@lists.php.net
To unsubscribe from the digest, e-mail:
php-windows-digest-unsubscr...@lists.php.net
To post to the list, e-mail:
php-wind...@lists.php.net
----------------------------------------------------------------------
--- Begin Message ---
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 2600001234 on
32 bit Windows it becomes s:10:"2600001234". If I do the same from 64
bit Linux it becomes i:2600001234.
Is there a way to force it to serialize as a string on 64 bit PHP? If
it matters this is an index of an array.
Thanks,
James
--- End Message ---