mirror of
https://github.com/composer/composer
synced 2025-05-11 09:32:55 +00:00
Merge pull request #5499 from Fleshgrinder/ipv6-platform-requirement
IPv6 Platform Requirement
This commit is contained in:
commit
5979db2e75
1 changed files with 6 additions and 6 deletions
|
@ -12,9 +12,8 @@
|
||||||
|
|
||||||
namespace Composer\Repository;
|
namespace Composer\Repository;
|
||||||
|
|
||||||
use Composer\Config;
|
|
||||||
use Composer\Package\PackageInterface;
|
|
||||||
use Composer\Package\CompletePackage;
|
use Composer\Package\CompletePackage;
|
||||||
|
use Composer\Package\PackageInterface;
|
||||||
use Composer\Package\Version\VersionParser;
|
use Composer\Package\Version\VersionParser;
|
||||||
use Composer\Plugin\PluginInterface;
|
use Composer\Plugin\PluginInterface;
|
||||||
use Composer\Util\Silencer;
|
use Composer\Util\Silencer;
|
||||||
|
@ -88,10 +87,11 @@ class PlatformRepository extends ArrayRepository
|
||||||
$this->addPackage($php64);
|
$this->addPackage($php64);
|
||||||
}
|
}
|
||||||
|
|
||||||
// The AF_INET6 constant is only defined if ext-sockets is available but IPv6 support might still be available.
|
// The AF_INET6 constant is only defined if ext-sockets is available but
|
||||||
if (defined('AF_INET6') || (function_exists('inet_pton') && Silencer::call('inet_pton', '::') !== false)) {
|
// IPv6 support might still be available.
|
||||||
$phpIpv6 = new CompletePackage('ext-network-ipv6', $version, $prettyVersion);
|
if (defined('AF_INET6') || Silencer::call('inet_pton', '::') !== false) {
|
||||||
$phpIpv6->setDescription('PHP IPv6 support');
|
$phpIpv6 = new CompletePackage('php-ipv6', $version, $prettyVersion);
|
||||||
|
$phpIpv6->setDescription('The PHP interpreter with IPv6 support');
|
||||||
$this->addPackage($phpIpv6);
|
$this->addPackage($phpIpv6);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue