note 56965 deleted from language.oop.magic-functions by danbrown

From: Date: Sat, 07 Nov 2009 18:54:56 +0000
Subject: note 56965 deleted from language.oop.magic-functions by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-162504@lists.php.net to get a copy of this message
Note Submitter: cwfsp at hizzotmail dizzot cizzom nospam ---- Following up to rkelly at NO dot whitley dot unimelb dot SPAM dot edu dot au's note regarding __sleep() __sleep expects you to return an array of object variables that are allowed to be serialized. Not returning this array -will- result in your object not being serialized, and -will- cause headaches. If you need __sleep() to do cleanup: 1) do your cleanup 2) return the object variables in an array using the code from the comment from php at sharpdreams dot com (below) search phrases to help people find this info: php object will not (does not) work in session session object will not work in subsequent page views my object won't show up on next page

« previous php.notes (#162504) next »