mirror of
https://github.com/php/php-src.git
synced 2025-08-18 15:08:55 +02:00
fix bug found by unit test
This commit is contained in:
parent
05dfdf1961
commit
48bca64444
1 changed files with 3 additions and 0 deletions
|
@ -201,6 +201,9 @@ class PEAR_Dependency
|
||||||
}
|
}
|
||||||
foreach ($deps as $dep) {
|
foreach ($deps as $dep) {
|
||||||
if ($dep['type'] == 'pkg' && strcasecmp($dep['name'], $package) == 0) {
|
if ($dep['type'] == 'pkg' && strcasecmp($dep['name'], $package) == 0) {
|
||||||
|
if ($dep['rel'] == 'ne') {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
if (isset($dep['optional']) && $dep['optional'] == 'yes') {
|
if (isset($dep['optional']) && $dep['optional'] == 'yes') {
|
||||||
$warning .= "\nWarning: Package '$pkg' optionally depends on '$package'";
|
$warning .= "\nWarning: Package '$pkg' optionally depends on '$package'";
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue