php-pear: pecl install reports Call to undefined method PEAR::raiseErro()

Bug #774452 reported by Rey Tucker on 2011-04-30
This bug affects 6 people
Affects Status Importance Assigned to Milestone
Fix Released
php5 (Ubuntu)
Steve Beattie

Bug Description

Binary package hint: php-pear


When trying to install PECL packages via pecl, I get the following error:

# pecl install uploadprogress
Fatal error: Call to undefined method PEAR::raiseErro() in /usr/share/php/PEAR/REST.php on line 165

Likewise on a search:

# pecl search uploadprogress
The value of config option cache_dir (/tmp/pear/cache) is not a directory and attempts to create the directory failed.

The behavior matches Debian bug #619307, so I suppose the fix may be similar: ... also, mkdir /tmp/pear/cache did work around the issue.

Ubuntu version: Ubuntu 10.04.2 LTS
php-pear package version: 5.3.2-1ubuntu4.8

Thanks! -rt

Rey Tucker (rtucker) on 2011-04-30
description: updated
Steve Beattie (sbeattie) wrote :

Reproduced, thanks for the report and the pointer.

Changed in php5 (Ubuntu):
status: New → Confirmed
importance: Undecided → High
assignee: nobody → Steve Beattie (sbeattie)
Changed in php:
status: Unknown → Fix Released
ndefontenay (n-de-fontenay) wrote :

I couldn't fix it with the work around.

Instead I get a longer error message as follow:

/tmp/pear/cache$ pear install validate

Warning: lstat(): Lstat failed for /tmp/pear/cache/8e41acf1705ae1850a413b96a869230erest.cacheid in PEAR/REST.php on line 276
PHP Warning: lstat(): Lstat failed for /tmp/pear/cache/8e41acf1705ae1850a413b96a869230erest.cacheid in /usr/share/php/PEAR/REST.php on line 276
PHP Fatal error: Call to undefined method PEAR::raiseErro() in /usr/share/php/PEAR/REST.php on line 165

Steve Beattie (sbeattie) wrote :

ndefontenay: what release are you seeing this in? I can't reproduce the lstat() warnings; however, the Fatal Error due to the PEAR::raiseErro() typo unfortunately affects all releases.

I'm currently testing the fix for this, and will hopefully be able to release it soon.

Thanks for your patience and sorry for the inconvenience.

Changed in php5 (Ubuntu):
status: Confirmed → In Progress
Ebben Feagan (sir-mud) wrote :

In my testing all that needs to be done is:
* add the letter "r" onto line 165 in REST.php
* create /tmp/pear/cache
I have tested installing several packages after doing these steps and it works.
Release: Natty Narwhal

annunaki2k2 (russell-knighton) wrote :

I have a /tmp that will be emptied on reboot. I don't know about anyone else, but I thought the cache should be a little more persistent. I personally have change the location:
mkdir /var/cache/pear
pear config-set cache_dir /var/cache/pear

I suggest that's a little more appropriate and should be the default at installation time.

Comments anyone?

Ondřej Surý (ondrej) wrote :

Just pull aea525085794 from Debian PHP GIT.

Launchpad Janitor (janitor) wrote :

This bug was fixed in the package php5 - 5.3.2-1ubuntu4.9

php5 (5.3.2-1ubuntu4.9) lucid-security; urgency=low

  * debian/patches/php5-pear-CVE-2011-1144-regression.patch: fix
    mkdir parenthesis issue and PEAR::raiseErro typo (LP: #774452)
 -- Steve Beattie <email address hidden> Mon, 02 May 2011 09:21:53 -0700

Changed in php5 (Ubuntu):
status: In Progress → Fix Released
Rey Tucker (rtucker) wrote :

Confirmed fixed in 5.3.2-1ubuntu4.9. Thank you for the quick fix!

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.