Re: Re: Strange PHP5 message

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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: signature.asc
Description: OpenPGP digital signature


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux