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

ID: 18548
Updated by: helgith@gmail.com
Reported By: sebastian dot krebs dot berlin at googlemail dot com
Summary: Notice when handling packages with dependency groups
-Status: Open
+Status: Feedback
Type: Bug
Package: PEAR
Operating System: ubuntu-11.04
Package Version: 1.9.2
PHP Version: 5.3.6
-Assigned To:
+Assigned To: dufuz
Roadmap Versions:
New Comment:

-Status: Open
+Status: Feedback
-Assigned To:
+Assigned To: dufuz



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

[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.

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

Search Discussions

Discussion Posts

Previous

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 2 of 2 | next ›
Discussion Overview
grouppear-bugs @
categoriesphp
postedJun 1, '11 at 3:09a
activeJun 7, '11 at 1:53a
posts2
users1
websitepear.php.net

1 user in discussion

Helgith: 2 posts

People

Translate

site design / logo © 2021 Grokbase