Translations:Developers/Object oriented programming in PHP/Objects/15/en

Another problem arises if you try to access global resources not exclusively managed by the object itself in the destructor. Chances are high that the global resources are already deleted when the destructor of the object is called, which results in a fatal error when trying to call methods of the non-existing object.