1
0
Fork 0

Merge remote-tracking branch 'Fleshgrinder/ipv6-platform-requirement'

pull/5360/head
Jordi Boggiano 2016-05-17 11:45:41 +01:00
commit a7bbdcb794
1 changed files with 7 additions and 0 deletions

View File

@ -87,6 +87,13 @@ class PlatformRepository extends ArrayRepository
$this->addPackage($php64);
}
// The AF_INET6 constant is only defined if ext-sockets is available but IPv6 support might still be available.
if (defined('AF_INET6') || @inet_pton('::') !== false) {
$phpIpv6 = new CompletePackage('ext-network-ipv6', $version, $prettyVersion);
$phpIpv6->setDescription('The network IPv6 PHP extension');
$this->addPackage($phpIpv6);
}
$loadedExtensions = get_loaded_extensions();
// Extensions scanning