Merge branch '1.3'

main
Jordi Boggiano 8 years ago
commit 285ff274ac

@ -1,3 +1,10 @@
### [1.3.1] - 2017-01-07
* Fixed dist downloads from Bitbucket
* Fixed some regressions related to xdebug disabling
* Fixed `--minor-only` flag in `outdated` command
* Fixed handling of config.platform.php which did not replace other php-* package's versions
### [1.3.0] - 2016-12-24 ### [1.3.0] - 2016-12-24
* Fixed handling of annotated git tags vs lightweight tags leading to useless updates sometimes * Fixed handling of annotated git tags vs lightweight tags leading to useless updates sometimes
@ -477,6 +484,7 @@
* Initial release * Initial release
[1.3.1]: https://github.com/composer/composer/compare/1.3.0...1.3.1
[1.3.0]: https://github.com/composer/composer/compare/1.3.0-RC...1.3.0 [1.3.0]: https://github.com/composer/composer/compare/1.3.0-RC...1.3.0
[1.3.0-RC]: https://github.com/composer/composer/compare/1.2.4...1.3.0-RC [1.3.0-RC]: https://github.com/composer/composer/compare/1.2.4...1.3.0-RC
[1.2.4]: https://github.com/composer/composer/compare/1.2.3...1.2.4 [1.2.4]: https://github.com/composer/composer/compare/1.2.3...1.2.4

@ -223,9 +223,13 @@ class PluginManager
/** /**
* Adds a plugin, activates it and registers it with the event dispatcher * Adds a plugin, activates it and registers it with the event dispatcher
* *
* Ideally plugin packages should be registered via registerPackage, but if you use Composer
* programmatically and want to register a plugin class directly this is a valid way
* to do it.
*
* @param PluginInterface $plugin plugin instance * @param PluginInterface $plugin plugin instance
*/ */
private function addPlugin(PluginInterface $plugin) public function addPlugin(PluginInterface $plugin)
{ {
$this->io->writeError('Loading plugin '.get_class($plugin), true, IOInterface::DEBUG); $this->io->writeError('Loading plugin '.get_class($plugin), true, IOInterface::DEBUG);
$this->plugins[] = $plugin; $this->plugins[] = $plugin;

@ -27,6 +27,7 @@ class ArtifactRepository extends ArrayRepository implements ConfigurableReposito
protected $lookup; protected $lookup;
protected $repoConfig; protected $repoConfig;
private $io;
public function __construct(array $repoConfig, IOInterface $io) public function __construct(array $repoConfig, IOInterface $io)
{ {

@ -152,6 +152,7 @@ class GitHubDriver extends VcsDriver
} }
$composer = $this->getBaseComposerInformation($identifier); $composer = $this->getBaseComposerInformation($identifier);
if ($composer) {
// specials for github // specials for github
if (!isset($composer['support']['source'])) { if (!isset($composer['support']['source'])) {
@ -161,6 +162,7 @@ class GitHubDriver extends VcsDriver
if (!isset($composer['support']['issues']) && $this->hasIssues) { if (!isset($composer['support']['issues']) && $this->hasIssues) {
$composer['support']['issues'] = sprintf('https://%s/%s/%s/issues', $this->originUrl, $this->owner, $this->repository); $composer['support']['issues'] = sprintf('https://%s/%s/%s/issues', $this->originUrl, $this->owner, $this->repository);
} }
}
if ($this->shouldCache($identifier)) { if ($this->shouldCache($identifier)) {
$this->cache->write($identifier, json_encode($composer)); $this->cache->write($identifier, json_encode($composer));

@ -136,6 +136,7 @@ class XdebugHandler
{ {
$this->tmpIni = ''; $this->tmpIni = '';
$iniPaths = IniHelper::getAll(); $iniPaths = IniHelper::getAll();
$additional = count($iniPaths) > 1;
if (empty($iniPaths[0])) { if (empty($iniPaths[0])) {
// There is no loaded ini // There is no loaded ini
@ -143,7 +144,7 @@ class XdebugHandler
} }
if ($this->writeTmpIni($iniPaths)) { if ($this->writeTmpIni($iniPaths)) {
return $this->setEnvironment($iniPaths); return $this->setEnvironment($additional, $iniPaths);
} }
return false; return false;
@ -193,15 +194,14 @@ class XdebugHandler
/** /**
* Returns true if the restart environment variables were set * Returns true if the restart environment variables were set
* *
* @param bool $additional Whether there were additional inis
* @param array $iniPaths Locations used by the current prcoess * @param array $iniPaths Locations used by the current prcoess
* *
* @return bool * @return bool
*/ */
private function setEnvironment(array $iniPaths) private function setEnvironment($additional, array $iniPaths)
{ {
// Set scan dir to an empty value if additional ini files were used // Set scan dir to an empty value if additional ini files were used
$additional = count($iniPaths) > 1;
if ($additional && !putenv('PHP_INI_SCAN_DIR=')) { if ($additional && !putenv('PHP_INI_SCAN_DIR=')) {
return false; return false;
} }

Loading…
Cancel
Save