From: Kunal Mehta Date: Mon, 23 Feb 2015 18:34:53 +0000 (-0800) Subject: ComposerJson: Ignore dependencies that start with "ext-" X-Git-Tag: 1.31.0-rc.0~12294 X-Git-Url: http://git.cyclocoop.org/%7B%7B%20url_for%28%27admin_vote_add%27%29%20%7D%7D?a=commitdiff_plain;h=8e25f1e167b8d11feefb36672ac46e40c40675e2;p=lhc%2Fweb%2Fwiklou.git ComposerJson: Ignore dependencies that start with "ext-" Any requirements of MediaWiki core to depend upon PHP extensions should be handled in the installer rather than checkComposerLockUpToDate.php, which doesn't work anyways since PHP extensions are not included in the lock file. Change-Id: Ib7af7ccf2f10bc941222d1ce534c7c20690b4c6f --- diff --git a/includes/libs/composer/ComposerJson.php b/includes/libs/composer/ComposerJson.php index 49c9f23a29..796acb56c7 100644 --- a/includes/libs/composer/ComposerJson.php +++ b/includes/libs/composer/ComposerJson.php @@ -28,7 +28,7 @@ class ComposerJson { public function getRequiredDependencies() { $deps = array(); foreach ( $this->contents['require'] as $package => $version ) { - if ( $package !== "php" ) { + if ( $package !== "php" && strpos( $package, 'ext-' ) !== 0 ) { $deps[$package] = self::normalizeVersion( $version ); } }