From 1ec2d1095bdd5d3a4c4fa669a4e76681b56deb8e Mon Sep 17 00:00:00 2001 From: epriestley Date: Wed, 11 Jul 2012 16:55:21 -0700 Subject: [PATCH] Add mb_* functions to the external function list Summary: The mbstring extension is common but not part of the PHP core, and we have a soft dependency on it but generally guard calls with function_exists(). Add the mbstring functions to the whitelist of known extension functions so lint doesn't raise errors about them if you don't have mbstring installed. Test Plan: @ffx, can you verify this fixes the lint issue for you? Probably faster than recompiling my PHP without mbstring. Reviewers: ffx, btrahan Reviewed By: btrahan CC: aran Differential Revision: https://secure.phabricator.com/D2961 --- scripts/lib/PhutilLibraryMapBuilder.php | 2 +- scripts/php_extension_functions.txt | 69 +++++++++++++++++++++++++ 2 files changed, 70 insertions(+), 1 deletion(-) diff --git a/scripts/lib/PhutilLibraryMapBuilder.php b/scripts/lib/PhutilLibraryMapBuilder.php index d3db801d..84b95b86 100755 --- a/scripts/lib/PhutilLibraryMapBuilder.php +++ b/scripts/lib/PhutilLibraryMapBuilder.php @@ -37,7 +37,7 @@ final class PhutilLibraryMapBuilder { const LIBRARY_MAP_VERSION = 2; const SYMBOL_CACHE_VERSION_KEY = '__symbol_cache_version__'; - const SYMBOL_CACHE_VERSION = 4; + const SYMBOL_CACHE_VERSION = 5; /* -( Mapping libphutil Libraries )---------------------------------------- */ diff --git a/scripts/php_extension_functions.txt b/scripts/php_extension_functions.txt index a503cbd4..b7db1b71 100644 --- a/scripts/php_extension_functions.txt +++ b/scripts/php_extension_functions.txt @@ -176,6 +176,75 @@ ldap_start_tls ldap_set_rebind_proc ldap_control_paged_result ldap_control_paged_result_response +mb_convert_case +mb_strtoupper +mb_strtolower +mb_language +mb_internal_encoding +mb_http_input +mb_http_output +mb_detect_order +mb_substitute_character +mb_parse_str +mb_output_handler +mb_preferred_mime_name +mb_strlen +mb_strpos +mb_strrpos +mb_stripos +mb_strripos +mb_strstr +mb_strrchr +mb_stristr +mb_strrichr +mb_substr_count +mb_substr +mb_strcut +mb_strwidth +mb_strimwidth +mb_convert_encoding +mb_detect_encoding +mb_list_encodings +mb_encoding_aliases +mb_convert_kana +mb_encode_mimeheader +mb_decode_mimeheader +mb_convert_variables +mb_encode_numericentity +mb_decode_numericentity +mb_send_mail +mb_get_info +mb_check_encoding +mb_regex_encoding +mb_regex_set_options +mb_ereg +mb_eregi +mb_ereg_replace +mb_eregi_replace +mb_ereg_replace_callback +mb_split +mb_ereg_match +mb_ereg_search +mb_ereg_search_pos +mb_ereg_search_regs +mb_ereg_search_init +mb_ereg_search_getregs +mb_ereg_search_getpos +mb_ereg_search_setpos +mbregex_encoding +mbereg +mberegi +mbereg_replace +mberegi_replace +mbsplit +mbereg_match +mbereg_search +mbereg_search_pos +mbereg_search_regs +mbereg_search_init +mbereg_search_getregs +mbereg_search_getpos +mbereg_search_setpos pcntl_fork pcntl_waitpid pcntl_wait -- 2.43.0