PEAR is archived and read-only

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

Home » HTTP » HTTP_Session » Bug #1016

Error on GC.

Details

Submitted2004-03-15 10:01 UTC
Fromfiw at mail dot ru
Assignedtroehr
StatusClosed
PackageHTTP_Session
PHP Version4.3.2
OSWinXP
Roadmaps(Not assigned)

Comments

[2004-03-15 10:01 UTC] fiw at mail dot ru

Description:
------------
in HTTP\Session\Container\DB.php, 276 line - error.

Reproduce code:
---------------
if ($this->options['autooptimize']) {
switch($this->db->type) {
case 'mysql':
...................

Expected result:
----------------
Notice: Undefined property: type in HTTP\Session\Container\DB.php on line 276

Actual result:
--------------
if ($this->options['autooptimize']) {
switch($this->db->phptype) {
case 'mysql':
...................

[2004-03-16 07:49 UTC] neufeind at php dot net

some more information from fiw:

> fc DB-04-bug.php DB-04-wo-bug.php

in function GC (in DB container) error. if set 'autooptimize' then check DB type ( switch($this->db->type) ), variable $type not defined in DB, so always autooptimise not run. you must use variable $phptype
to detect type of database.

[2005-09-02 21:12 UTC] torsten dot roehr at gmx dot de

This bug has been fixed in CVS.

If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET).

If this was a problem with the pear.php.net website, the change should be live shortly.

Otherwise, the fix will appear in the package's next release.

Thank you for the report and for helping us make PEAR better.