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 » LiveUser_Admin » Bug #3844

$this instead of $obj in factory method

Details

Submitted2005-03-16 15:34 UTC
Frombenpjohnson at gmail dot com
Assignedlsmith
StatusClosed
PackageLiveUser_Admin
PHP Version5.0.3
OSWindows XP
Roadmaps(Not assigned)

Comments

[2005-03-16 15:34 UTC] benpjohnson at gmail dot com

Description:
------------
Package version 0.2.0

The factory method of the admin class refers to $this rather than $obj when the autoInit option is set.

Reproduce code:
---------------
Admin.php 247-250

if (isset($obj->_conf['autoInit']) && $obj->_conf['autoInit']) {
$this->setAdminContainers();
}

Expected result:
----------------
Should be:

if (isset($obj->_conf['autoInit']) && $obj->_conf['autoInit']) {
$obj->setAdminContainers();
}

[2005-03-16 15:39 UTC] smith at backendmedia dot com

This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pear.php.net.

In case this was a pear.php.net website problem, the change will show
up on the website in short time.

Thank you for the report, and for helping us make PEAR better.