registration: Let extensions add PHP extension requirements
authorMGChecker <hgasuser@gmail.com>
Mon, 24 Sep 2018 21:55:16 +0000 (23:55 +0200)
committerMGChecker <hgasuser@gmail.com>
Sun, 30 Sep 2018 17:55:57 +0000 (19:55 +0200)
commitc7e45b62113b1d9d6ff80705eff25ee93b722e19
tree3de80711cb0c4a7f4c99cce47435906701da30f0
parentb495d51657d5b488c23f82650615443215339232
registration: Let extensions add PHP extension requirements

This change adds the possibility to specify ext-* keys under the 'platform'
key introduced in I6744cc0be2 to require given PHP extensions. Note that
it's impossible to add constraints different from '*', as there is no universal
way to retrieve PHP extension versions.

Bug: T197535
Change-Id: I510de1e6d80f5c1d92dc1d1665aaa6c25bf28bf7
docs/extension.schema.v1.json
docs/extension.schema.v2.json
includes/registration/ExtensionDependencyError.php
includes/registration/ExtensionRegistry.php
includes/registration/VersionChecker.php
tests/phpunit/includes/registration/VersionCheckerTest.php