mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00: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:
parent
9a53df6f73
commit
3690d30726
1 changed files with 11 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
catch (\Exception $e)
|
||||
|
|
Loading…
Add table
Reference in a new issue