mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-04 15:57:45 +02:00
[ticket/17336] Also check for compatible extension by PHP version
PHPBB-17336 Signed-off-by: Matt Friedman <maf675@gmail.com>
This commit is contained in:
@@ -514,6 +514,17 @@ class installer
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Check for compatibility with php if 'php' exists in 'requires'
|
||||||
|
if (isset($requires['php']))
|
||||||
|
{
|
||||||
|
$php_constraint = $version_parser->parseConstraints(PHP_VERSION);
|
||||||
|
$package_constraint = $requires['php']->getConstraint();
|
||||||
|
if (!$package_constraint->matches($php_constraint))
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$compatible_packages[$package_name][] = $version;
|
$compatible_packages[$package_name][] = $version;
|
||||||
}
|
}
|
||||||
catch (\Exception $e)
|
catch (\Exception $e)
|
||||||
|
Reference in New Issue
Block a user