Skip to content
Permalink
Browse files

Add more impure functions

  • Loading branch information
muglug committed Nov 13, 2019
1 parent 975ff92 commit 4be3180512f813dd9cb88d141976191162e53097
Showing with 6 additions and 4 deletions.
  1. +6 −4 src/Psalm/Internal/Codebase/Functions.php
@@ -282,7 +282,7 @@ public function isCallMapFunctionPure(
'chdir', 'chgrp', 'chmod', 'chown', 'chroot', 'closedir', 'copy', 'file_put_contents',
'fopen', 'fread', 'fwrite', 'fclose', 'touch', 'fpassthru', 'fputs', 'fscanf', 'fseek',
'ftruncate', 'fprintf', 'symlink', 'mkdir', 'unlink', 'rename', 'rmdir', 'popen', 'pclose',
'fputcsv', 'umask', 'finfo_close',
'fputcsv', 'umask', 'finfo_close', 'readline_add_history', 'stream_set_timeout',
// stream/socket io
'stream_context_set_option', 'socket_write', 'stream_set_blocking', 'socket_close',
@@ -328,9 +328,10 @@ public function isCallMapFunctionPure(
'shell_exec', 'exec', 'system', 'passthru', 'pcntl_exec',
// well-known functions
'libxml_use_internal_errors', 'curl_exec',
'libxml_use_internal_errors', 'libxml_disable_entity_loader', 'curl_exec',
'mt_srand', 'openssl_pkcs7_sign',
'mt_rand', 'rand',
'mt_rand', 'rand', 'wincache_ucache_delete', 'wincache_ucache_set', 'wincache_ucache_inc',
'class_alias',
// php environment
'ini_set', 'sleep', 'usleep', 'register_shutdown_function',
@@ -344,7 +345,8 @@ public function isCallMapFunctionPure(
'openlog', 'syslog', 'error_log', 'define_syslog_variables',
// session
'session_id', 'session_name', 'session_set_cookie_params',
'session_id', 'session_name', 'session_set_cookie_params', 'session_set_save_handler',
'session_regenerate_id', 'mb_internal_encoding',
// ldap
'ldap_set_option',

0 comments on commit 4be3180

Please sign in to comment.
You can’t perform that action at this time.