PEAR Bug #6991http://pear.php.net/bugs/6991
[Closed] Class 'PEAR_PackageFile_v1' not found in Registry.php at line 1657en-uspear-webmaster@lists.php.netpear-webmaster@lists.php.nethourly12000-01-01T12:00+00:00

Class 'PEAR_PackageFile_v1' not found in Registry.php at line 1657Description:
------------
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;
c.pinkl@... [2006-03-02 03:27:17]http://pear.php.net/bugs/6991
PEAR Bug
Reported by c.pinkl@...
2006-03-02T08:27:17+00:00
PHP: 5.0.5 OS: Win XP Package Version: 1.4.7
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;]]>PEAR Bug
Reported by c.pinkl@...
2006-03-02T08:27:17+00:00
PHP: 5.0.5 OS: Win XP Package Version: 1.4.7
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;]]>2006-03-02T08:27:17+00:00
cellog [2006-03-02 18:14] http://pear.php.net/bugs/6991#1141323294
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.]]>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.]]>2006-03-02T18:14:54+00:00