Bug#428397: pear install calls undefined method

2007-06-18 Thread CruX
Package: php-pear
Version: php5/5.2.0-8+etch1

--- Please enter the report below this line. ---

Forgot to mention that the patch was for
/usr/share/php/PEAR/PackageFile/v1.php as there are 3 files named the
same, at least in my installation.

--- System information. ---
Architecture: i386
Kernel:   Linux 2.6.21-1-voodoo

Debian Release: lenny/sid
  900 testing security.debian.org 
  900 testing debian.logiclinux.com 
  600 unstabledebian.logiclinux.com 

--- Package information. ---
Depends   (Version) | Installed
===-+-===
| 



signature.asc
Description: This is a digitally signed message part


Bug#428397: pear install calls undefined method

2007-06-11 Thread CruX
Package: php-pear
Version: 5.2.0-8+etch1
Severity: normal
Tags: patch

--- Please enter the report below this line. ---

First of all I'm sending this report from a different machine that the
one where php-pear is installed. In that one Etch is installed with
apache2 and php5 and every upgrade to date.

When running pear install Mail Mail_Mime Auth_HTTP a fatal error
appeared saying:

Fatal error: Call to undefined method 
PEAR_PackageFile_v1::getProvidesExtension() in 
/usr/local/php5/lib/php/PEAR/Downloader/Package.php on line 963

I worked around it with the attached patch. I don't know if this is
fixed in newer versions, though I couldn't find any related bugs
neither Changelogs.

Thanks for your attention.

--- System information. ---
Architecture: i386
Kernel:   Linux 2.6.21-1-686

Debian Release: lenny/sid
  900 testing security.debian.org 
  900 testing debian.logiclinux.com 
  600 unstabledebian.logiclinux.com 

--- Package information. ---
Depends   (Version) | Installed
===-+-===
| 

--- v1.php.orig	2007-06-07 11:19:15.0 -0400
+++ v1.php	2007-06-07 11:04:34.0 -0400
@@ -858,6 +858,11 @@
 return false;
 }
 
+function getProvidesExtension()
+{
+	$this-getProvides();
+}
+
 function addFile($dir, $file, $attrs)
 {
 $dir = preg_replace(array('!+!', '!/+!'), array('/', '/'), $dir);