PEAR is archived and read-only

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

Home » PEAR » PEAR » Bug #6991

Class 'PEAR_PackageFile_v1' not found in Registry.php at line 1657

Details

Submitted2006-03-02 08:27 UTC
Fromc dot pinkl at gmx dot at
Assignedcellog
StatusClosed
PackagePEAR
PHP Version5.0.5
OSWin XP
Roadmaps(Not assigned)

Comments

[2006-03-02 08:27 UTC] c dot pinkl at gmx dot at

Description:
------------
The Error was while testing the PEAR_Frontend_web in the PEAR/Registry.php at line 1657 in the Function updatePackage.

The class PEAR_PackageFile_v1 wasn't found.

Other than in the function addPackage you do not try if the Class already exist. so Maybe it would help checking if the class exist and else incuding the needed file 'PEAR/PackageFile/v1.php'.

Test script:
---------------
Posible changes to
the function updatePackage in Registry.php:

Currently:

$pf = new PEAR_PackageFile_v1;

to

if (!class_exists('PEAR_PackageFile_v1')) {
require_once 'PEAR/PackageFile/v1.php';
}
$pf = new PEAR_PackageFile_v1;