FAQ
Edit report at http://pear.php.net/bugs/bug.php?id=18892&edit=1

ID: 18892
Updated by: helgith@gmail.com
Reported By: jakob at ybals dot de
Summary: Parse error in Installer.php
Status: Assigned
Type: Bug
Package: PEAR
Operating System: Debian 6
Package Version: 1.9.4
PHP Version: 4.4.9
Assigned To: dufuz
Roadmap Versions:
New Comment:

Go for it, attach a patch to this and prod me when it is done.


Previous Comments:
------------------------------------------------------------------------

[2011-10-31 13:57:06] doconnor

-Assigned To:
+Assigned To: dufuz
Hey Helgi; are you happy for me to have crack at this if you don't have
time?

------------------------------------------------------------------------

[2011-10-06 14:22:12] doconnor

Ouch; I wonder when that got changed between PHP4 and PHP5.

http://svn.php.net/viewvc/pear/pear-core/trunk/PEAR/Installer.php?
view=markup#l786

------------------------------------------------------------------------

[2011-10-06 09:30:53] jakber

Description:
------------
After upgrading PEAR to 1.9.4 every install request with pear end up in
"Parse error: syntax error, unexpected '(', expecting '}' in
/usr/local/lib/php/PEAR/Installer.php on line 811".

Test script:
---------------
-install Debian 6
-install PHP 4.4.9 from source
-upgrade PEAR to 1.9.4 (pear upgrade --force PEAR)
-try to install another package

Expected result:
----------------
Parse error: syntax error, unexpected '(', expecting '}' in
/usr/local/lib/php/PEAR/Installer.php on line 811

Actual result:
--------------
Solution:
Replce line 811 of Installer.php with this one: "$this->log(3, 'file
'.$data[0].' was scheduled for removal from
'.$this->pkginfo->getName().' but is owned by
'.$new->getChannel().'/'.$new->getName().', removal has been
cancelled.');"

------------------------------------------------------------------------

Search Discussions

Discussion Posts

Previous

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 3 of 3 | next ›
Discussion Overview
grouppear-bugs @
categoriesphp
postedOct 6, '11 at 12:20p
activeOct 31, '11 at 3:58p
posts3
users2
websitepear.php.net

2 users in discussion

Daniel Oconnor: 2 posts Helgith: 1 post

People

Translate

site design / logo © 2021 Grokbase