PEAR is archived and read-only

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

Home » PEAR » PEAR_PackageFileManager » Bug #4267

PEAR 1.4.0alpha dependency

Details

Submitted2005-05-03 10:21 UTC
Fromlists at norbert dot mocsnik dot hu
StatusBogus
PackagePEAR_PackageFileManager
PHP VersionIrrelevant
OSirrelevant
Roadmaps(Not assigned)

Comments

[2005-05-03 10:21 UTC] lists at norbert dot mocsnik dot hu

Description:
------------
PEAR 1.4.0-alpha dependency should be assigned to the package.

writePackageFile():

[..]
$packagexml = $common->xmlFromInfo($this->_packageXml);
$common->validatePackageInfo($packagexml, $warnings, $errors, $this->_options['packagedirectory']);
[..]

The first line generates an XML document.

In the second line, the whole XML document is passed as the first parameter to PEAR_Common::validatePackageInfo(). Even in PEAR 1.3.5 (the most current release of the 1.3.x series) this function needs an .xml|.tgz file to read, or if it doesn't detect these extensions, it tries to open the file.

This is why when using the package with PEAR 1.3.5, it produces a warning like:

<b>Warning</b>: fopen(<?xml version="1.0" encoding="ISO-8859-1" ?> ...

It can be clearly seen that it tries to open the file named "<whole content of the generated xml file>".

After upgrading to PEAR 1.4.0a11, everything goes fine. As I can see PEAR_Common has been refactored significantly.

Please mark as bogus if I'm wrong, I just started to get to know this package.