Home » HTTP » HTTP_Session » Bug #9261
Add destructor to allow usage in PHP > 5.0.5
Details
| Request #9261 | Add destructor to allow usage in PHP > 5.0.5 |
|---|---|
| Submitted | 2006-11-08 00:37 UTC |
| From | glennh at inetz dot com |
| Assigned | troehr |
| Status | Closed |
| Package | HTTP_Session |
| PHP Version | 5.1.2 |
| OS | FreeBSD 6.0 |
| Roadmaps | (Not assigned) |
Comments
[2006-11-08 00:37 UTC] glennh at inetz dot com
Description:
------------
It would be helpful if we could get a destructor added to eliminate the "DB Error: no database selected" which occurs when using php versions > 5.0.5
I included the destructor that I have added to the code that resolves the problem. This will be completely compatible with PHP 4.x since it won't call the destructor.
Test script:
---------------
function __destruct()
{
session_write_close();
}