]> khamidou — GitHub mirrors - arcanist.git/commit
Include common extensions in symbol mapper
authorepriestley <git@epriestley.com>
Tue, 12 Jun 2012 19:54:26 +0000 (12:54 -0700)
committerepriestley <git@epriestley.com>
Tue, 12 Jun 2012 19:54:26 +0000 (12:54 -0700)
commit264d915e1356ce83d14b3600a6bf40b8d463c3e5
tree6015682efc9f53997577dab539de176ccc5ede28
parent1100e8768a9cbb2caa1ddb2545b119e4b5b86344
Include common extensions in symbol mapper

Summary:
Spamming everyone who got bitten by this. We upgraded the libphutil library system recently, but the "use of undeclared function" lint check used to run only on files you touched and now runs on every file in every library you use. This means that if you don't have pcntl or ldap installed, you'll get errors about use of functions from them on every change.

Instead, ship with a list of functions which are provided by extensions that we'll ignore when calculating dependencies, so not having pcntl doesn't mean you have to excuse through irrelevant errrors every time.

Test Plan: Ran script with an unknown function, got it in the map; added it to the extension list, it vanished from the map.

Reviewers: vrana, btrahan, allenjohnashton, ddfisher, keebuhm, phleet, nodren

Reviewed By: vrana

CC: aran
Maniphest Tasks: T1347

Differential Revision: https://secure.phabricator.com/D2728
scripts/php_extension_functions.txt [new file with mode: 0644]
scripts/phutil_symbols.php