On Sunday, April 14, 2002, at 07:23 PM, Hayden Kirk wrote:
> im trying to make a distructor for a mysql class to kill the connection > when > the object is destroyed using register_shutdown_function("~xmysql"); > if i > put that in my class will it do that or am i getting confused. ~xmysql > is a > destructor function i made. Heres the code, will it work how i want it > to? I did not think that PHP had support for destructor methods. You could call your "xmysql" method manually if you like but you can't have it called automatically if your object is unset(). This is according to: http://www.php.net/manual/en/language.oop.constructor.php , down at the bottom just before the annotations. Erik ---- Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php