1
0
Fork 0

Correction of variable overwrite used during an iteration and now the versions of PHP extensions are parsed like packages.

pull/217/head
Henrique Moody 2012-01-17 16:49:03 -02:00
parent 4e6a9806b6
commit dd2174885b
1 changed files with 4 additions and 4 deletions

View File

@ -155,13 +155,13 @@ class PearRepository extends ArrayRepository
$data[$name] = $this->parseVersion($options);
} elseif ('package' == $name) {
foreach ($options as $key => $value) {
$key = $value['name'];
$data[$key] = $this->parseVersion($value);
$dataKey = $value['name'];
$data[$dataKey] = $this->parseVersion($value);
}
} elseif ('extension' == $name) {
foreach ($options as $key => $value) {
$key = 'ext-' . $value['name'];
$data[$key] = '*';
$dataKey = 'ext-' . $value['name'];
$data[$dataKey] = $this->parseVersion($value);
}
}
}