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

Improper path in Container/RADIUS.php::require_once()

Details

Submitted2004-12-04 21:02 UTC
Fromadamg at pld-linux dot org
Assignedyavo
StatusClosed
PackageAuth
PHP VersionIrrelevant
OSIrrelevant
Roadmaps(Not assigned)

Comments

[2004-12-04 21:02 UTC] adamg at pld-linux dot org

Description:
------------
In Container/RADIUS.php there is twice the line:
require_once 'Crypt_CHAP/CHAP.php';
While it should be
require_once 'Crypt/CHAP.php'

Below you can find a patch for this, please apply with patch -p1.

Reproduce code:
---------------
--- php-pear-Auth-1.2.3.orig/Auth-1.2.3/Container/RADIUS.php 2004-12-04 21:39:21.815463240 +0100
+++ php-pear-Auth-1.2.3/Auth-1.2.3/Container/RADIUS.php 2004-12-04 21:40:02.488280032 +0100
@@ -110,7 +110,7 @@
$this->radius->chapid = 1;
$this->radius->response = pack('H*', $password);
} else {
- require_once 'Crypt_CHAP/CHAP.php';
+ require_once 'Crypt/CHAP.php';
$classname = 'Crypt_' . $this->authtype;
$crpt = new $classname;
$crpt->password = $password;
@@ -121,7 +121,7 @@
}

case 'MSCHAPv2':
- require_once 'Crypt_CHAP/CHAP.php';
+ require_once 'Crypt/CHAP.php';
$crpt = new Crypt_MSCHAPv2;
$crpt->username = $username;
$crpt->password = $password;