PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » HTTP » HTTP_Session2 » Bug #4164

Garbage collection not working because of index of array

Details

Submitted2005-04-16 15:55 UTC
Fromstranger_nm at newmail dot ru
Assignedtbibbs
StatusClosed
PackageHTTP_Session2
PHP Version5.0.2
OSWindows XP
Roadmaps(Not assigned)

Comments

[2005-04-16 15:55 UTC] stranger_nm at newmail dot ru

Description:
------------
I've found that garbage collection is not working and found why. It's just a little bug, you forgot digit "2" at the code :) See below:

Reproduce code:
---------------
/*** file at HTTP/Session2/Container.php ***/

/*151*/ /** @ignore */
/*152*/ function HTTP_Session2_GC($maxlifetime)
/*153*/ {
/*154*/ return $GLOBALS['HTTP_Session_Container']->gc($maxlifetime);
/*155*/ }