Bug #18548 [Com]: Notice when handling packages with dependency groups
| From: | za_creature | Date: | Sun, 30 Dec 2012 14:17:35 +0000 |
| Subject: | Bug #18548 [Com]: Notice when handling packages with dependency groups | ||
| References: | 1 | Groups: | php.pear.bugs |
| Request: | Send a blank email to pear-bugs+get-9439@lists.php.net to get a copy of this message | ||
Edit report at http://pear.php.net/bugs/bug.php?id=18548&edit=1
ID: 18548
Comment by: za_creature
Reported By: za_creature at yahoo dot com
Summary: Notice when handling packages with dependency groups
Status: Feedback
Type: Bug
Package: PEAR
Operating System: ubuntu-11.04
Package Version: 1.9.2
PHP Version: 5.3.6
Assigned To: dufuz
New Comment:
I have a private pear repository that seems to have the same problem
(however I'm unsure if the problem is in pear itself, or my package.xml
is incorrect)
Anyway feel free to try for yourselves (all packages on that repo either
already are or will soon be open source),
pear channel discover pear.full-throttle.ro
pear install full/Velocity-0.9.0
My PHP version is 5.4.10 (built: Dec 20 2012 17:10:38)
PEAR is 1.9.4 from 2011-07-06 22:11:24
Previous Comments:
------------------------------------------------------------------------
[2011-06-07 02:52:20] dufuz
<div id="changeset">
<span class="removed">-Status: Open</span>
<span class="added">+Status: Feedback</span>
<span class="removed">-Assigned To:</span>
<span class="added">+Assigned To: dufuz</span>
</div>
------------------------------------------------------------------------
[2011-06-01 04:09:10] dufuz
What command were you running when this happened? Can you give me a
reproducible example?
------------------------------------------------------------------------
[2011-05-19 10:44:11] kingcrunch
In Package.php:562-567 there is
foreach ($deps['group'] as $group) {
if (strtolower($group['attribs']['name']) ==
strtolower($groupname)) {
$found = true;
break;
}
}
When I dump "$group" its like
array(2) {
[0]=>
array(2) {
["name"]=>
string(5) "phing"
["channel"]=>
string(15) "pear.phing.info"
}
[1]=>
array(2) {
["name"]=>
string(10) "PHP_Depend"
["channel"]=>
string(16) "pear.pdepend.org"
}
}
There is no key "attribs" at all.
------------------------------------------------------------------------
[2011-05-19 00:29:02] kingcrunch
Description:
------------
Notice: Undefined index: attribs in
PEAR/Downloader/Package.php on line 563
PHP Notice: Undefined index: attribs in
/usr/share/php/PEAR/Downloader/Package.php on line 563
PHP Stack trace:
PHP 1. {main}() /usr/share/php/pearcmd.php:0
PHP 2. PEAR_Command_Common->run()
/usr/share/php/pearcmd.php:305
PHP 3. PEAR_Command_Install->doInstall()
/usr/share/php/PEAR/Command/Common.php:271
PHP 4. PEAR_Command_Install->doUpgradeAll()
/usr/share/php/PEAR/Command/Install.php:547
PHP 5. PEAR_Command_Install->doInstall()
/usr/share/php/PEAR/Command/Install.php:902
PHP 6. PEAR_Downloader->download()
/usr/share/php/PEAR/Command/Install.php:661
PHP 7. PEAR_Downloader_Package->detectDependencies()
/usr/share/php/PEAR/Downloader.php:392
PHP 8. PEAR_Downloader_Package->_detect2()
/usr/share/php/PEAR/Downloader/Package.php:381
This occurs when handling packages, that contain dependency
groups. This groups are also not installable.
------------------------------------------------------------------------
--
Edit this bug report at http://pear.php.net/bugs/bug.php?id=18548&edit=1