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); $data[$name] = $this->parseVersion($options);
} elseif ('package' == $name) { } elseif ('package' == $name) {
foreach ($options as $key => $value) { foreach ($options as $key => $value) {
$key = $value['name']; $dataKey = $value['name'];
$data[$key] = $this->parseVersion($value); $data[$dataKey] = $this->parseVersion($value);
} }
} elseif ('extension' == $name) { } elseif ('extension' == $name) {
foreach ($options as $key => $value) { foreach ($options as $key => $value) {
$key = 'ext-' . $value['name']; $dataKey = 'ext-' . $value['name'];
$data[$key] = '*'; $data[$dataKey] = $this->parseVersion($value);
} }
} }
} }