From 50c23e8ee4586f18bb7ddad6c0485a3bbab5936e Mon Sep 17 00:00:00 2001 From: Edward Speyer Date: Tue, 1 May 2012 18:12:15 -0700 Subject: [PATCH] Help the analyzer find phutil_is_hiphop_runtime Summary: rPHUf9ba25d188c1dcf39e4454b2c6bb058e0beeaa3e adds global function phutil_is_hiphop_runtime() to __phutil_library_init__.php. This diff helps lint files that call that function. Test Plan: Lint D2365. Reviewers: epriestley Reviewed By: epriestley CC: aran, Koolvin Differential Revision: https://secure.phabricator.com/D2366 --- scripts/phutil_analyzer.php | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/phutil_analyzer.php b/scripts/phutil_analyzer.php index 5dd568a4..e091d09a 100755 --- a/scripts/phutil_analyzer.php +++ b/scripts/phutil_analyzer.php @@ -39,6 +39,7 @@ $builtin = array( 'phutil_is_windows' => true, 'phutil_load_library' => true, + 'phutil_is_hiphop_runtime' => true, // HPHP/i defines these functions as 'internal', but they are NOT // builtins and do not exist in vanilla PHP. Make sure we don't mark them