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 » Authentication » Auth » Bug #2245

1.3.0r2 - typo in container DB.php

Details

Submitted2004-08-29 17:31 UTC
Frompasi at schnappshot dot de
Assignedyavo
StatusClosed
PackageAuth
PHP Version5.0.1
OSLinux
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") {