Re: [PHP] __sleep, __wakeup and persistent connections

2005-08-21 Thread Richard Lynch
On Sat, August 20, 2005 6:33 am, Marcus Bointon wrote: I'm sorting out some code to handle session object storage, I can't help with the OO stuff. given that the connection is persistent, and may thus be used by other scripts, is calling mysql_close a particularly bad idea? Should I just not

[PHP] __sleep, __wakeup and persistent connections

2005-08-20 Thread Marcus Bointon
I'm sorting out some code to handle session object storage, particularly where the objects contain DB connections. I've found lots of articles that go on about how __sleep should clean up db stuff, close connections etc and how __wakeup should reconnect, but weirdly enough I've not found a