Innovation Award
 November 2005
Number 8 |
When an object of a class is destroyed, sometimes is necessary to execute maintenance tasks, like for instance freeing resources allocated during the object life time. Usually this is done using destructor functions. However, class destructor functions are not supported under PHP 4.
This class provides an alternative solution that consists on registering a shutdown function that assures that the class destructor function is always called until the end of the current script.
Manuel Lemos |
This class can be used to implement class destructor functionality in a way that it works under PHP 4.
It works as a base class that keeps track of all objects that are created by its subclasses.
If a PHP script attempts to exit before an object is destroyed, a shutdown function is called to explicitly destroy any pending objects.
| Project record: |
destructor |
| Popularity score: |
12.96 |
| Vitality score: |
1.0 |
| Ratings | Utility |
Consistency |
Documentation |
Examples |
Tests |
Videos |
Overall |
Rank |
| All time: |
Good (81.3%) |
Sufficient (75.0%) |
- |
Sufficient (75.0%) |
- |
- |
Not sure (55.6%) |
976 |
| Month: |
Not yet rated by the users |
| Class |
Dependency |
Why it is needed |
| MySQL Database |
Required |
Cleanup of database class. |
No application links were specified for this class.

If you know an application of this package, send a message to the
author to add a link here.