php destructor behaviour
问题 im trying to understand php constructor and destructor behaviour. Everything goes as expected with the constructor but i am having trouble getting the destructor to fire implicitly. Ive done all the reading on php.net and related sites, but i cant find an answer to this question. If i have a simple class, something like: class test{ public function __construct(){ print "contructing<br>"; } public function __destruct(){ print "destroying<br>"; } } and i call it with something like: $t = new