Bug #12793: __sleep causing problems
| From: | clownfighter at hotmail dot com | Date: | Thu, 16 Aug 2001 14:28:56 +0000 |
| Subject: | Bug #12793: __sleep causing problems | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-63433@lists.php.net to get a copy of this message | ||
From: clownfighter@hotmail.com
Operating system:
PHP version: 4.0.6
PHP Bug Type: Session related
Bug description: __sleep causing problems
When I create a db connection object, call it "conn", with a __sleep
function to close the connection when the object is serialized for a
session, any object which has an instance of "conn" fails to load properly.
For instance, if I have an object "permissions" that has a "conn" object,
when I unserialize "permissions" from a session the class appears to never
be defined. I don't get any error messages until I try to use
"permissions," in which case it says "Call to a function of a non-object"
whenever I try to use a function of "permissions." Never do I get an error
from "conn" or "permissions."
Comment out the __sleep function in "conn" and things work fine.
My configure line:
'./configure' '--with-postgres' '--with-gd' '--with-pspell'
'--with-apxs'
--
Edit bug report at: http://bugs.php.net/?id=12793&edit=1