Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:7533 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 91843 invoked by uid 1010); 4 Feb 2004 11:36:22 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 91819 invoked by uid 1007); 4 Feb 2004 11:36:22 -0000 To: internals@lists.php.net Date: Wed, 4 Feb 2004 12:36:21 +0100 Message-ID: <20040204123621.77e6639b@localhost.localdomain> References: Organization: Freelancer X-Newsreader: Sylpheed version 0.9.8claws (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Posted-By: 195.14.220.113 Subject: Re: php5: Unserialize Large Objects with References From: paj@pearfr.org (Pierre-Alain Joye) 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