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 #1528

Undefined property 'type' with PEAR::DB 1.6.0RC1 and newer

Details

Submitted2004-05-30 00:03 UTC
Fromroehr at zilleon dot com
StatusDuplicate
PackageHTTP_Session
PHP VersionIrrelevant
OSLinux
Roadmaps(Not assigned)

Comments

[2004-05-30 00:03 UTC] roehr at zilleon dot com

Description:
------------
When using HTTP_Session 0.4 with PEAR::DB 1.6.0RC1 or newer the following error can occur:

Undefined property: type, File: /.../Session/Container/DB.php, Line: 276

This occurs because of a property name change in PEAR::DB 1.6.0RC1 (from the changelog):
var $phptype was misnamed $type

Reproduce code:
---------------
Line 276 in Session/Container/DB.php is:
switch($this->db->type) {

and should be changed to:
switch($this->db->phptype) {

Won't have happened if a setter method would exist in PEAR::DB for this property so the property name could have been changed without breaking public access...

Best regards,
Torsten Roehr

[2004-05-30 00:11 UTC] roehr at zilleon dot com

Already submitted as Bug #1016 Error on GC.

Sorry! Didn't recognize this bug report first as the name did not reflect what 'my' bug report was about.

Regards, Torsten