Home » Authentication » Auth » Bug #2245
1.3.0r2 - typo in container DB.php
Details
| Submitted | 2004-08-29 17:31 UTC |
|---|---|
| From | pasi at schnappshot dot de |
| Assigned | yavo |
| Status | Closed |
| Package | Auth |
| PHP Version | 5.0.1 |
| OS | Linux |
| Roadmaps | (Not assigned) |
Comments
[2004-08-29 17:31 UTC] pasi at schnappshot dot de
Description:
------------
PEAR::Auth 1.3.0r2
When you specify an existing DB-Object as "dsn", the DB-container won't accept the object because of an typo. The parent class for the DB-Object is called "DB_common" and not "db_common".
I don't know if only in PHP5 the function get_parent_class() is case-sensitive.
Reproduce code:
---------------
To fix that, change file Auth/Container/DB.php, line 96 from
} elseif (get_parent_class($dsn) == "db_common") {
to
} elseif (get_parent_class($dsn) == "DB_common") {