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

Missing portability option with DB storage

Details

Submitted2005-01-18 11:11 UTC
Fromyannick dot dirou at axetic dot com
StatusBogus
PackageAuth
PHP Version5.0.3
OSLinux
Roadmaps(Not assigned)

Comments

[2005-01-18 11:11 UTC] yannick dot dirou at axetic dot com

Description:
------------
Version 1.2.3

using oracle 10 storage, "username" and "password" fields are returned in uppercase.

To avoid it we can for instance add
in Auth/Container/DB.php
line 113 in __connect method before return true;

$this->db->setOption('portability',DB_PORTABILITY_ALL);

[2005-02-16 09:06 UTC] yannick dot dirou at axetic dot com

yes you're right the bug is not there but line 96 in DB.php
there's a case problem with php5
} elseif (get_parent_class($dsn) == "db_common") {
get_parent_class($dsn) returns 'DB_common'

it has been corrected 1.3.0r3 with
} elseif (is_subclass_of($dsn, 'db_common')) {
which seems to be case unsensitive