]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Add mysql and mysqli functions to the phutil map whitelist
authorepriestley <git@epriestley.com>
Wed, 1 Aug 2012 18:02:20 +0000 (11:02 -0700)
committerepriestley <git@epriestley.com>
Wed, 1 Aug 2012 18:02:20 +0000 (11:02 -0700)
Summary: I originally excluded `mysql` these under the theory that it would be impossible to test anything without it, but `arc` doesn't need it and you could have only one of the mysql-flavored extensions without having the other one. Whitelist all the mysql and mysqli extension functions as far as depenencies are concerned.

Test Plan: @floatinglomas, let me know if this fixes things for you?

Reviewers: btrahan, vrana, floatinglomas

Reviewed By: btrahan

CC: aran
Differential Revision: https://secure.phabricator.com/D3119

scripts/lib/PhutilLibraryMapBuilder.php
scripts/php_extension_functions.txt

index e58fde04d0ccf6fc4ea0792046abfd2ae1ca101d..139814858e5b186217bf9486d31cbc802247f30c 100755 (executable)
@@ -37,7 +37,7 @@ final class PhutilLibraryMapBuilder {
   const LIBRARY_MAP_VERSION       = 2;
 
   const SYMBOL_CACHE_VERSION_KEY  = '__symbol_cache_version__';
-  const SYMBOL_CACHE_VERSION      = 6;
+  const SYMBOL_CACHE_VERSION      = 7;
 
 
 /* -(  Mapping libphutil Libraries  )---------------------------------------- */
index b7db1b71add6bd7630c1cf994a323e5aed3bc8de..b4026c09416e9372c125a491361dfddf11da006c 100644 (file)
@@ -245,6 +245,167 @@ mbereg_search_init
 mbereg_search_getregs
 mbereg_search_getpos
 mbereg_search_setpos
+mysql_connect
+mysql_pconnect
+mysql_close
+mysql_select_db
+mysql_query
+mysql_unbuffered_query
+mysql_db_query
+mysql_list_dbs
+mysql_list_tables
+mysql_list_fields
+mysql_list_processes
+mysql_error
+mysql_errno
+mysql_affected_rows
+mysql_insert_id
+mysql_result
+mysql_num_rows
+mysql_num_fields
+mysql_fetch_row
+mysql_fetch_array
+mysql_fetch_assoc
+mysql_fetch_object
+mysql_data_seek
+mysql_fetch_lengths
+mysql_fetch_field
+mysql_field_seek
+mysql_free_result
+mysql_field_name
+mysql_field_table
+mysql_field_len
+mysql_field_type
+mysql_field_flags
+mysql_escape_string
+mysql_real_escape_string
+mysql_stat
+mysql_thread_id
+mysql_client_encoding
+mysql_ping
+mysql_get_client_info
+mysql_get_host_info
+mysql_get_proto_info
+mysql_get_server_info
+mysql_info
+mysql_set_charset
+mysql
+mysql_fieldname
+mysql_fieldtable
+mysql_fieldlen
+mysql_fieldtype
+mysql_fieldflags
+mysql_selectdb
+mysql_freeresult
+mysql_numfields
+mysql_numrows
+mysql_listdbs
+mysql_listtables
+mysql_listfields
+mysql_db_name
+mysql_dbname
+mysql_tablename
+mysql_table_name
+mysqli_affected_rows
+mysqli_autocommit
+mysqli_change_user
+mysqli_character_set_name
+mysqli_close
+mysqli_commit
+mysqli_connect
+mysqli_connect_errno
+mysqli_connect_error
+mysqli_data_seek
+mysqli_dump_debug_info
+mysqli_debug
+mysqli_errno
+mysqli_error
+mysqli_error_list
+mysqli_stmt_execute
+mysqli_execute
+mysqli_fetch_field
+mysqli_fetch_fields
+mysqli_fetch_field_direct
+mysqli_fetch_lengths
+mysqli_fetch_all
+mysqli_fetch_array
+mysqli_fetch_assoc
+mysqli_fetch_object
+mysqli_fetch_row
+mysqli_field_count
+mysqli_field_seek
+mysqli_field_tell
+mysqli_free_result
+mysqli_get_connection_stats
+mysqli_get_client_stats
+mysqli_get_charset
+mysqli_get_client_info
+mysqli_get_client_version
+mysqli_get_host_info
+mysqli_get_proto_info
+mysqli_get_server_info
+mysqli_get_server_version
+mysqli_get_warnings
+mysqli_init
+mysqli_info
+mysqli_insert_id
+mysqli_kill
+mysqli_more_results
+mysqli_multi_query
+mysqli_next_result
+mysqli_num_fields
+mysqli_num_rows
+mysqli_options
+mysqli_ping
+mysqli_poll
+mysqli_prepare
+mysqli_report
+mysqli_query
+mysqli_real_connect
+mysqli_real_escape_string
+mysqli_real_query
+mysqli_reap_async_query
+mysqli_rollback
+mysqli_select_db
+mysqli_set_charset
+mysqli_stmt_affected_rows
+mysqli_stmt_attr_get
+mysqli_stmt_attr_set
+mysqli_stmt_bind_param
+mysqli_stmt_bind_result
+mysqli_stmt_close
+mysqli_stmt_data_seek
+mysqli_stmt_errno
+mysqli_stmt_error
+mysqli_stmt_error_list
+mysqli_stmt_fetch
+mysqli_stmt_field_count
+mysqli_stmt_free_result
+mysqli_stmt_get_result
+mysqli_stmt_get_warnings
+mysqli_stmt_init
+mysqli_stmt_insert_id
+mysqli_stmt_more_results
+mysqli_stmt_next_result
+mysqli_stmt_num_rows
+mysqli_stmt_param_count
+mysqli_stmt_prepare
+mysqli_stmt_reset
+mysqli_stmt_result_metadata
+mysqli_stmt_send_long_data
+mysqli_stmt_store_result
+mysqli_stmt_sqlstate
+mysqli_sqlstate
+mysqli_ssl_set
+mysqli_stat
+mysqli_store_result
+mysqli_thread_id
+mysqli_thread_safe
+mysqli_use_result
+mysqli_warning_count
+mysqli_refresh
+mysqli_escape_string
+mysqli_set_opt
 pcntl_fork
 pcntl_waitpid
 pcntl_wait