Home » HTTP » HTTP_Session » Bug #1528
Undefined property 'type' with PEAR::DB 1.6.0RC1 and newer
Details
| Submitted | 2004-05-30 00:03 UTC |
|---|---|
| From | roehr at zilleon dot com |
| Status | Duplicate |
| Package | HTTP_Session |
| PHP Version | Irrelevant |
| OS | Linux |
| 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