]> khamidou — GitHub mirrors - arcanist.git/commit
Update `update_compat_info.php` to use PHP_CompatInfo version 3
authorJoshua Spence <josh@joshuaspence.com>
Mon, 16 Jun 2014 14:30:16 +0000 (00:30 +1000)
committerJoshua Spence <josh@joshuaspence.com>
Mon, 16 Jun 2014 14:30:16 +0000 (00:30 +1000)
commit8f8ab969db1754f75e4978982bdee82606cc30f6
tree7a8b8a2f84a1aa06cac4bcd103dea92acc657740
parent497229acd83aacf61d4a4aeda4e868143aa0ce54
Update `update_compat_info.php` to use PHP_CompatInfo version 3

Summary:
Fixes T5377. The current `scripts/update_compat_info.php` script works for PHP CompatInfo version 2, but doesn't work with the newer version 3.

There are a few breaking changes in version 3 that had to be addressed:

- PHP 5.3 is required. Whilst Arcanist is generally compatible with PHP 5.2, I don't think that having this dependency presents any real issues because it is purely a development tool that is rarely updated.
- [[https://getcomposer.org/ | Composer]] is used for packaging, which makes including the library slightly more complicated. Basically, I had to install `PHP_CompatInfo` globally with Composer (`composer global require "bartlett/php-compatinfo"` and then symlink `~/.composer/vendor` into `externals/includes`.

Test Plan: Compared the `resources/php_compat_info.json` file. There are a bunch of functions/classes that //were// in this file but are no longer, but I think that I've covered the most popular extensions.

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: epriestley, Korvin

Maniphest Tasks: T5377

Differential Revision: https://secure.phabricator.com/D9568
resources/php_compat_info.json
scripts/update_compat_info.php
src/lint/linter/ArcanistXHPASTLinter.php