[PHP-DEV] Bug #12793 Updated: __sleep causing problems

2001-12-26 Thread lobbin

ID: 12793
Updated by: lobbin
Reported By: [EMAIL PROTECTED]
Old Status: Feedback
Status: Closed
Bug Type: Session related
Operating System: 
PHP Version: 4.0.6
New Comment:

No feedback. Closing.

Previous Comments:


[2001-12-05 10:19:18] [EMAIL PROTECTED]

Can you provide a _simple_ sample-script?



[2001-08-16 10:28:56] [EMAIL PROTECTED]

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 this bug report at http://bugs.php.net/?id=12793edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12793 Updated: __sleep causing problems

2001-12-05 Thread sander

ID: 12793
Updated by: sander
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: Session related
Operating System: 
PHP Version: 4.0.6
New Comment:

Can you provide a _simple_ sample-script?

Previous Comments:


[2001-08-16 10:28:56] [EMAIL PROTECTED]

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 this bug report at http://bugs.php.net/?id=12793edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]