Re: [PHP] Object Destruction in PHP5

2005-03-16 Thread Jochem Maas
Arjun Jain wrote: Hi everyone, When is the object destroyed which is created in a PHP5 script? Suppose i say: fun1('abcd'); $m->fun2(); unset($m); // this fires $m->__destruct() if it exists. ?> Then why is the destructor not called when my script ends? Can it be it is called - but it won't output

[PHP] Object Destruction in PHP5

2005-03-16 Thread Arjun Jain
Hi everyone, When is the object destroyed which is created in a PHP5 script? Suppose i say: fun1('abcd'); $m->fun2(); ?> Then why is the destructor not called when my script ends? Can it be called explicitly? If yes, how? Thanking you in advance, Regards aj -- --