It's also worth mentioning that, in the case of a subclass that has its own destructor, the parent destructor is not called automatically.
You have to explicitly call parent::__destruct() from the subclass __destruct() method if the parent class does any required cleanup.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…