mirror of
https://gitlab.com/TheGamecraft/c-cms.git
synced 2026-04-24 19:59:10 -04:00
ALPHA 3.0.2a
This commit is contained in:
4
vendor/symfony/http-foundation/IpUtils.php
vendored
4
vendor/symfony/http-foundation/IpUtils.php
vendored
@@ -37,7 +37,7 @@ class IpUtils
|
||||
*/
|
||||
public static function checkIp($requestIp, $ips)
|
||||
{
|
||||
if (!is_array($ips)) {
|
||||
if (!\is_array($ips)) {
|
||||
$ips = array($ips);
|
||||
}
|
||||
|
||||
@@ -116,7 +116,7 @@ class IpUtils
|
||||
return self::$checkedIps[$cacheKey];
|
||||
}
|
||||
|
||||
if (!((extension_loaded('sockets') && defined('AF_INET6')) || @inet_pton('::1'))) {
|
||||
if (!((\extension_loaded('sockets') && \defined('AF_INET6')) || @inet_pton('::1'))) {
|
||||
throw new \RuntimeException('Unable to check Ipv6. Check that PHP was not compiled with option "disable-ipv6".');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user