Bug #16631 [Opn->Bgs]: Upgrade to/Install of PEAR 1.9.0 fails w/PHP4

From: Date: Mon, 21 Sep 2009 15:14:49 +0000
Subject: Bug #16631 [Opn->Bgs]: 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-1693@lists.php.net to get a copy of this message
Edit report at http://pear.php.net/bugs/bug.php?id=16631&edit=1 ID: 16631 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: Open +Status: Bogus Type: Bug Package: PEAR Operating System: FreeBSD 6.3 Package Version: 1.9.0 PHP Version: 4.4.9 Roadmap Versions: New Comment: -Status: Open +Status: Bogus Not an issue with PEAR 1.9.0. Previous Comments: ------------------------------------------------------------------------ [2009-09-21 15:53:43] 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=16631&edit=1

« previous php.pear.bugs (#1693) next »