mirror of
https://github.com/danog/psalm.git
synced 2024-11-26 20:34:47 +01:00
43 lines
1.3 KiB
PHP
43 lines
1.3 KiB
PHP
<?php
|
||
|
||
// This maps internal function names to sink types that we don’t want to end up there
|
||
|
||
return [
|
||
'exec' => [['shell']],
|
||
'create_function' => [['text'], ['text']],
|
||
'file_get_contents' => [['text']],
|
||
'file_put_contents' => [['shell']],
|
||
'fopen' => [['shell']],
|
||
'header' => [['text']],
|
||
'igbinary_unserialize' => [['text']],
|
||
'ldap_search' => [['text']],
|
||
'mysqli_query' => [[], ['sql']],
|
||
'mysqli::query' => [['sql']],
|
||
'mysqli_real_query' => [[], ['sql']],
|
||
'mysqli::real_query' => [['sql']],
|
||
'mysqli_multi_query' => [[], ['sql']],
|
||
'mysqli::multi_query' => [['sql']],
|
||
'mysqli_prepare' => [[], ['sql']],
|
||
'mysqli::prepare' => [['sql']],
|
||
'mysqli_stmt::__construct' => [[], ['sql']],
|
||
'mysqli_stmt_prepare' => [[], ['sql']],
|
||
'mysqli_stmt::prepare' => [['sql']],
|
||
'passthru' => [['shell']],
|
||
'pcntl_exec' => [['shell']],
|
||
'PDO::prepare' => [['sql']],
|
||
'PDO::query' => [['sql']],
|
||
'PDO::exec' => [['sql']],
|
||
'pg_exec' => [[], ['sql']],
|
||
'pg_prepare' => [[], [], ['sql']],
|
||
'pg_put_line' => [[], ['sql']],
|
||
'pg_query' => [[], ['sql']],
|
||
'pg_query_params' => [[], ['sql']],
|
||
'pg_send_prepare' => [[], [], ['sql']],
|
||
'pg_send_query' => [[], ['sql']],
|
||
'pg_send_query_params' => [[], ['sql'], []],
|
||
'setcookie' => [['text'], ['text']],
|
||
'shell_exec' => [['shell']],
|
||
'system' => [['shell']],
|
||
'unserialize' => [['text']],
|
||
];
|