Bug #16632 [Fbk]: Upgrade to/Install of PEAR 1.9.0 fails w/PHP4
| From: | ryan dot m dot lange at gmail dot com | Date: | Thu, 24 Sep 2009 04:42:21 +0000 |
| Subject: | Bug #16632 [Fbk]: Upgrade to/Install of PEAR 1.9.0 fails w/PHP4 | ||
| References: | 1 | Groups: | php.pear.bugs |
| Request: | Send a blank email to pear-bugs+get-1715@lists.php.net to get a copy of this message | ||
Edit report at http://pear.php.net/bugs/bug.php?id=16632&edit=1
ID: 16632
Updated by: ryan.m.lange@gmail.com
Reported By: ryan dot m dot lange at gmail dot com
Summary: Upgrade to/Install of PEAR 1.9.0 fails w/PHP4
Status: Feedback
Type: Bug
Package: PEAR
Operating System: FreeBSD 6.3
Package Version: 1.8.1
PHP Version: 4.4.9
Assigned To: ashnazg
Roadmap Versions:
New Comment:
doconnor wrote:
> "Hey Ryan, just FYI, in the near future (PEAR2) PHP4 support will be
a thing of the past. We're only talking around 6 months here at most, so
if you haven't started planning to migrate, please do so!"
Completely understandable, and a good thing. Migration is already
underway. I just like keeping what I can up-to-date (yes, I'm aware of
the irony/hypocrisy here :oP) until it's no longer feasible.
ashnazg wrote:
> "Were you hoping that there would be a separate 1.8.2 release that
would fix it in the 1.8.x stream?"
Well, the 1.8.1 release is in contradiction to the stated prerequisites
("PHP Version: PHP 4.4.0 or newer"). There's also the more important
issue that, for anyone in my situation (still using PHP4 in some
capacity), this creates a broken upgrade path from 1.8.1 to 1.9.0.
I doubt there are very many in my position (especially at this point in
time), so it may not be worthwhile, but I can't say for sure.
Previous Comments:
------------------------------------------------------------------------
[2009-09-23 15:34:52] ashnazg
-Status: Open
+Status: Feedback
-Assigned To:
+Assigned To: ashnazg
Ryan, as you stated when you bogus'd bug #16631, this is fixed in
1.9.0... therefore the bug is fixed in the PEAR mainline code.
Were you hoping that there would be a separate 1.8.2 release that would
fix it in the 1.8.x stream?
------------------------------------------------------------------------
[2009-09-22 01:31:43] doconnor
Hey Ryan, just FYI, in the near future (PEAR2) PHP4 support will be a
thing of the past. We're only talking around 6 months here at most, so
if you haven't started planning to migrate, please do so!
------------------------------------------------------------------------
[2009-09-21 16:12:35] cl1mh4224rd
-Package Version: 1.9.0
+Package Version: 1.8.1
I'm changing the package version. This is apparently a bug in v2 of the
package file generator for PEAR 1.8.1 and not related to PEAR 1.9.0.
Rewriting the offending foreach loop to be PHP4-compatible allowed the
upgrade to PEAR 1.9.0 to succeed.
------------------------------------------------------------------------
[2009-09-21 15:56:35] cl1mh4224rd
Description:
------------
The commands
pear upgrade-all, pear upgrade PEAR, and `pear install
PEAR-1.9.0` all fail with the following message:
-----
PHP Parse error: syntax error, unexpected '&', expecting T_VARIABLE or
'$' in /usr/local/php4/lib/php/PEAR/PackageFile/Generator/v2.php on line
380
-----
The offending line is:
-----
foreach ($arr['changelog']['release'] as &$c) {
-----
Now, as I understand it, the use of an ampersand on the right-hand side
of a foreach is a feature of PHP5 and is illegal in PHP4.
------------------------------------------------------------------------
--
Edit this bug report at http://pear.php.net/bugs/bug.php?id=16632&edit=1