Skip to content

Commit

Permalink
Correct API version and stability handling. __set is not called when …
Browse files Browse the repository at this point in the history
…associative array values are set.
  • Loading branch information
saltybeagle committed Mar 7, 2011
1 parent 77dc26b commit ec1e8b7
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/PEAR2/Pyrus/Developer/PackageFile/PEAR2SVN.php
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,14 @@ function parseRELEASE()

$this->version['api'] = $apiversion;
$this->stability['api'] = $apistability;

if ($this->doCompatible) {
// __set will not work on arrays so set these manually for compatible
$this->pxml_compatible->version['release'] = $this->version['release'];
$this->pxml_compatible->version['api'] = $this->version['api'];
$this->pxml_compatible->stability['release'] = $this->stability['release'];
$this->pxml_compatible->stability['api'] = $this->stability['api'];
}

}
}
Expand All @@ -355,6 +363,12 @@ function parseAPI()

$this->version['api'] = $apiversion;
$this->stability['api'] = $stability;

if ($this->doCompatible) {
// __set will not work on arrays so set these manually for compatible
$this->pxml_compatible->version['api'] = $this->version['api'];
$this->pxml_compatible->stability['api'] = $this->stability['api'];
}

$this->notes = $this->notes .
"\n\n" . file_get_contents($this->path . DIRECTORY_SEPARATOR . $apinotesfile);
Expand Down

0 comments on commit ec1e8b7

Please sign in to comment.