PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Authentication » Auth » Bug #9380

Auth via POP3: lost $server default value

Details

Submitted2006-11-19 10:30 UTC
Fromfrancesco dot foschi at gmail dot com
Assignedaashley
StatusClosed
PackageAuth
PHP VersionIrrelevant
OSIrrelevany
Roadmaps(Not assigned)

Comments

[2006-11-19 10:30 UTC] francesco dot foschi at gmail dot com

Description:
------------
Using auth via POP3, with default array options values (without any variable in constuction call), Auth_Container_POP3 lost $server value (default: localhost)

Test script:
---------------
require_once "Auth.php";
// A POP3 is used as storage container in this example
$a = new Auth("POP3");

For resolv this, you can change line 115 in Container/POP3.php

} else {
with:
} else if( ! is_null($server)) {

Expected result:
----------------
in class Container/POP3.php, dump of $this (line 115):
print_r($this):
Auth_Container_POP3 Object
(
[server] => localhost
[port] => 110
[method] => 1
[activeUser] =>
)

Actual result:
--------------
in class Container/POP3.php, dump of $this (line 115):
print_r($this):
Auth_Container_POP3 Object
(
[server] =>
[port] => 110
[method] => 1
[activeUser] =>
)

[2006-12-06 01:16 UTC] aashley at php dot net

This bug has been fixed in CVS.

If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET).

If this was a problem with the pear.php.net website, the change should be live shortly.

Otherwise, the fix will appear in the package's next release.

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