Re: php5: Unserialize Large Objects with References
| From: | Pierre-Alain Joye | Date: | Wed, 04 Feb 2004 11:36:21 +0000 |
| Subject: | Re: php5: Unserialize Large Objects with References | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-7533@lists.php.net to get a copy of this message | ||
On Tue, 3 Feb 2004 15:44:17 -0800 (PST)
david@agent911.com (David Giffin) wrote:
>
> Hi there,
>
> I've been using the unserialize and serialize methods in php5 on some
> rather large objects it seems that the larger object get the following
> errors:
>
> Notice: unserialize(): Error at offset 6167 of 31195 bytes in
> /root/doServerStates.php on line 37
>
> Different smaller object:
>
> Notice: unserialize(): Error at offset 6179 of 21955 bytes in
> /root/doServerStates.php on line 37
>
Do you store the serialized data in a file betweep the ops? If yes,
check that you use binary mode only. I got similar errors in the past.
pierre