PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » HTTP » HTTP_Session » Bug #9261

Add destructor to allow usage in PHP > 5.0.5

Details

Request #9261Add destructor to allow usage in PHP > 5.0.5
Submitted2006-11-08 00:37 UTC
Fromglennh at inetz dot com
Assignedtroehr
StatusClosed
PackageHTTP_Session
PHP Version5.1.2
OSFreeBSD 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();
}