Originariamente inviato da filippo.toso
Ti suggerisco di iniziare leggendo il manuale ufficiale:

http://www.php.net/manual/en/languag...con.destructor

The destructor method will be called as soon as all references to a particular object are removed or when the object is explicitly destroyed or in any order in shutdown sequence.
Prima di chiedere, consulto sempre la documentazione ufficiale, solo che non mi è chiara la risposta alla mia domanda. Mi sapresti rispondere?