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
2012-06-12 21:54:26 +02:00
|
|
|
apc_add
|
|
|
|
apc_bin_dump
|
|
|
|
apc_bin_dumpfile
|
|
|
|
apc_bin_load
|
|
|
|
apc_bin_loadfile
|
|
|
|
apc_cache_info
|
|
|
|
apc_cas
|
|
|
|
apc_clear_cache
|
|
|
|
apc_compile_file
|
|
|
|
apc_dec
|
|
|
|
apc_define_constants
|
|
|
|
apc_delete
|
|
|
|
apc_delete_file
|
|
|
|
apc_exists
|
|
|
|
apc_fetch
|
|
|
|
apc_inc
|
|
|
|
apc_load_constants
|
|
|
|
apc_sma_info
|
|
|
|
apc_store
|
|
|
|
bcadd
|
|
|
|
bccomp
|
|
|
|
bcdiv
|
|
|
|
bcmod
|
|
|
|
bcmul
|
|
|
|
bcpow
|
|
|
|
bcpowmod
|
|
|
|
bcscale
|
|
|
|
bcsqrt
|
|
|
|
bcsub
|
|
|
|
curl_close
|
|
|
|
curl_copy_handle
|
|
|
|
curl_errno
|
|
|
|
curl_error
|
|
|
|
curl_escape
|
|
|
|
curl_exec
|
|
|
|
curl_getinfo
|
|
|
|
curl_init
|
|
|
|
curl_multi_add_handle
|
|
|
|
curl_multi_close
|
|
|
|
curl_multi_exec
|
|
|
|
curl_multi_getcontent
|
|
|
|
curl_multi_info_read
|
|
|
|
curl_multi_init
|
|
|
|
curl_multi_remove_handle
|
|
|
|
curl_multi_select
|
|
|
|
curl_reset
|
|
|
|
curl_setopt
|
|
|
|
curl_setopt_array
|
|
|
|
curl_share_close
|
|
|
|
curl_share_init
|
|
|
|
curl_share_setopt
|
|
|
|
curl_unescape
|
|
|
|
curl_version
|
|
|
|
image2wbmp
|
|
|
|
image_type_to_extension
|
|
|
|
image_type_to_mime_type
|
|
|
|
imagealphablending
|
|
|
|
imageantialias
|
|
|
|
imagearc
|
|
|
|
imagechar
|
|
|
|
imagecharup
|
|
|
|
imagecolorallocate
|
|
|
|
imagecolorallocatealpha
|
|
|
|
imagecolorat
|
|
|
|
imagecolorclosest
|
|
|
|
imagecolorclosestalpha
|
|
|
|
imagecolorclosesthwb
|
|
|
|
imagecolordeallocate
|
|
|
|
imagecolorexact
|
|
|
|
imagecolorexactalpha
|
|
|
|
imagecolormatch
|
|
|
|
imagecolorresolve
|
|
|
|
imagecolorresolvealpha
|
|
|
|
imagecolorset
|
|
|
|
imagecolorsforindex
|
|
|
|
imagecolorstotal
|
|
|
|
imagecolortransparent
|
|
|
|
imageconvolution
|
|
|
|
imagecopy
|
|
|
|
imagecopymerge
|
|
|
|
imagecopymergegray
|
|
|
|
imagecopyresampled
|
|
|
|
imagecopyresized
|
|
|
|
imagecreate
|
|
|
|
imagecreatefromgd
|
|
|
|
imagecreatefromgd2
|
|
|
|
imagecreatefromgd2part
|
|
|
|
imagecreatefromgif
|
|
|
|
imagecreatefromjpeg
|
|
|
|
imagecreatefrompng
|
|
|
|
imagecreatefromstring
|
|
|
|
imagecreatefromwbmp
|
|
|
|
imagecreatefromxbm
|
|
|
|
imagecreatetruecolor
|
|
|
|
imagedashedline
|
|
|
|
imagedestroy
|
|
|
|
imageellipse
|
|
|
|
imagefill
|
|
|
|
imagefilledarc
|
|
|
|
imagefilledellipse
|
|
|
|
imagefilledpolygon
|
|
|
|
imagefilledrectangle
|
|
|
|
imagefilltoborder
|
|
|
|
imagefilter
|
|
|
|
imagefontheight
|
|
|
|
imagefontwidth
|
|
|
|
imagegammacorrect
|
|
|
|
imagegd
|
|
|
|
imagegd2
|
|
|
|
imagegif
|
|
|
|
imageinterlace
|
|
|
|
imageistruecolor
|
|
|
|
imagejpeg
|
|
|
|
imagelayereffect
|
|
|
|
imageline
|
|
|
|
imageloadfont
|
|
|
|
imagepalettecopy
|
|
|
|
imagepng
|
|
|
|
imagepolygon
|
|
|
|
imagerectangle
|
|
|
|
imagerotate
|
|
|
|
imagesavealpha
|
|
|
|
imagesetbrush
|
|
|
|
imagesetpixel
|
|
|
|
imagesetstyle
|
|
|
|
imagesetthickness
|
|
|
|
imagesettile
|
|
|
|
imagestring
|
|
|
|
imagestringup
|
|
|
|
imagesx
|
|
|
|
imagesy
|
|
|
|
imagetruecolortopalette
|
|
|
|
imagetypes
|
|
|
|
imagewbmp
|
|
|
|
imagexbm
|
|
|
|
ldap_connect
|
|
|
|
ldap_close
|
|
|
|
ldap_bind
|
|
|
|
ldap_sasl_bind
|
|
|
|
ldap_unbind
|
|
|
|
ldap_read
|
|
|
|
ldap_list
|
|
|
|
ldap_search
|
|
|
|
ldap_free_result
|
|
|
|
ldap_count_entries
|
|
|
|
ldap_first_entry
|
|
|
|
ldap_next_entry
|
|
|
|
ldap_get_entries
|
|
|
|
ldap_first_attribute
|
|
|
|
ldap_next_attribute
|
|
|
|
ldap_get_attributes
|
|
|
|
ldap_get_values
|
|
|
|
ldap_get_values_len
|
|
|
|
ldap_get_dn
|
|
|
|
ldap_explode_dn
|
|
|
|
ldap_dn2ufn
|
|
|
|
ldap_add
|
|
|
|
ldap_delete
|
|
|
|
ldap_modify
|
|
|
|
ldap_mod_add
|
|
|
|
ldap_mod_replace
|
|
|
|
ldap_mod_del
|
|
|
|
ldap_errno
|
|
|
|
ldap_err2str
|
|
|
|
ldap_error
|
|
|
|
ldap_compare
|
|
|
|
ldap_sort
|
|
|
|
ldap_rename
|
|
|
|
ldap_get_option
|
|
|
|
ldap_set_option
|
|
|
|
ldap_first_reference
|
|
|
|
ldap_next_reference
|
|
|
|
ldap_parse_reference
|
|
|
|
ldap_parse_result
|
|
|
|
ldap_start_tls
|
|
|
|
ldap_set_rebind_proc
|
|
|
|
ldap_control_paged_result
|
|
|
|
ldap_control_paged_result_response
|
2012-07-12 01:55:21 +02:00
|
|
|
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
|
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
2012-06-12 21:54:26 +02:00
|
|
|
pcntl_fork
|
|
|
|
pcntl_waitpid
|
|
|
|
pcntl_wait
|
|
|
|
pcntl_signal
|
|
|
|
pcntl_signal_dispatch
|
|
|
|
pcntl_wifexited
|
|
|
|
pcntl_wifstopped
|
|
|
|
pcntl_wifsignaled
|
|
|
|
pcntl_wexitstatus
|
|
|
|
pcntl_wtermsig
|
|
|
|
pcntl_wstopsig
|
|
|
|
pcntl_exec
|
|
|
|
pcntl_alarm
|
|
|
|
pcntl_get_last_error
|
|
|
|
pcntl_errno
|
|
|
|
pcntl_strerror
|
|
|
|
pcntl_getpriority
|
|
|
|
pcntl_setpriority
|
|
|
|
pcntl_sigprocmask
|
|
|
|
posix_kill
|
|
|
|
posix_getpid
|
|
|
|
posix_getppid
|
|
|
|
posix_getuid
|
|
|
|
posix_setuid
|
|
|
|
posix_geteuid
|
|
|
|
posix_seteuid
|
|
|
|
posix_getgid
|
|
|
|
posix_setgid
|
|
|
|
posix_getegid
|
|
|
|
posix_setegid
|
|
|
|
posix_getgroups
|
|
|
|
posix_getlogin
|
|
|
|
posix_getpgrp
|
|
|
|
posix_setsid
|
|
|
|
posix_setpgid
|
|
|
|
posix_getpgid
|
|
|
|
posix_getsid
|
|
|
|
posix_uname
|
|
|
|
posix_times
|
|
|
|
posix_ctermid
|
|
|
|
posix_ttyname
|
|
|
|
posix_isatty
|
|
|
|
posix_getcwd
|
|
|
|
posix_mkfifo
|
|
|
|
posix_mknod
|
|
|
|
posix_access
|
|
|
|
posix_getgrnam
|
|
|
|
posix_getgrgid
|
|
|
|
posix_getpwnam
|
|
|
|
posix_getpwuid
|
|
|
|
posix_getrlimit
|
|
|
|
posix_get_last_error
|
|
|
|
posix_errno
|
|
|
|
posix_strerror
|
|
|
|
posix_initgroups
|
|
|
|
socket_accept
|
|
|
|
socket_bind
|
|
|
|
socket_clear_error
|
|
|
|
socket_close
|
|
|
|
socket_connect
|
|
|
|
socket_create
|
|
|
|
socket_create_listen
|
|
|
|
socket_create_pair
|
|
|
|
socket_get_option
|
|
|
|
socket_get_status
|
|
|
|
socket_getopt
|
|
|
|
socket_getpeername
|
|
|
|
socket_getsockname
|
|
|
|
socket_import_stream
|
|
|
|
socket_last_error
|
|
|
|
socket_listen
|
|
|
|
socket_read
|
|
|
|
socket_recv
|
|
|
|
socket_recvfrom
|
|
|
|
socket_select
|
|
|
|
socket_send
|
|
|
|
socket_sendto
|
|
|
|
socket_set_block
|
|
|
|
socket_set_blocking
|
|
|
|
socket_set_nonblock
|
|
|
|
socket_set_option
|
|
|
|
socket_set_timeout
|
|
|
|
socket_setopt
|
|
|
|
socket_shutdown
|
|
|
|
socket_strerror
|
|
|
|
socket_write
|