Re: Re: Strange PHP5 message

From: Date: Thu, 17 Mar 2005 14:26:31 +0000
Subject: Re: Re: Strange PHP5 message
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-210982@lists.php.net to get a copy of this message
Andrei Verovski wrote: > Hi, Jason, > > Thanks a lot for suggestion. Does it mean that I have tried to > serialize some object (like adodb db object)? How I can eliminate this? > I really cannot find where this object or whatever else is going to be > serailized. The problematic line of code just serialized an array. > ... Yes, you tried to serialize some object. But rather than *not* serializing the object, what you really want to do is to fix your __sleep function. Serializing objects is "A Good Thing." (tm) I don't know what your class is, but you need __sleep to return an array of class properties. Certainly you can look at the last code example that I provided and figure out how to do that. Or at least I hope that you can ;) -- Teach a man to fish... NEW? | http://www.catb.org/~esr/faqs/smart-questions.html STFA | http://marc.theaimsgroup.com/?l=php-general&w=2 STFM | http://php.net/manual/en/index.php STFW | http://www.google.com/search?q=php LAZY | http://mycroft.mozdev.org/download.html?name=PHP&submitform=Find+search+plugins

Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
« previous php.general (#210982) next »