Skip to content

Instantly share code, notes, and snippets.

@caipre
Created February 19, 2015 21:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save caipre/feb7f9fe46dc2fa90a79 to your computer and use it in GitHub Desktop.
Save caipre/feb7f9fe46dc2fa90a79 to your computer and use it in GitHub Desktop.
hussar: static analysis of wordpress
# commit: 5dc3b77be39b499c1e9b6b757256a9aec86d80d8
# created: 2015-02-19 16:43:36
14 UseUndeclaredGlobalVariable wp-admin/edit-form-comment.php $comment
19 UseUndeclaredGlobalVariable wp-admin/edit-form-comment.php $user_ID
109 UseUndeclaredGlobalVariable wp-admin/edit-form-comment.php $action
20 UseUndeclaredGlobalVariable wp-admin/edit-tag-form.php $taxonomy
29 UseUndeclaredGlobalVariable wp-admin/edit-tag-form.php $tag
65 UseUndeclaredGlobalVariable wp-admin/edit-tag-form.php $tax
587 UseUndeclaredVariable wp-admin/includes/class-ftp.php $rest
587 UseUndeclaredVariable wp-admin/includes/class-ftp.php $rest
594 UseUndeclaredVariable wp-admin/includes/class-ftp.php $rest
594 UseUndeclaredVariable wp-admin/includes/class-ftp.php $rest
763 TooManyArgument wp-admin/includes/class-ftp.php $this->mkdir($dir, $mode)
813 UnknownObjectMethod wp-admin/includes/class-ftp.php $this->my_regexp('^' . $tester . '$', $string)
1275 UnknownFunction wp-admin/includes/class-pclzip.php PclErrorCode()
1337 UnknownFunction wp-admin/includes/class-pclzip.php PclErrorString()
2737 UseUndeclaredVariable wp-admin/includes/class-pclzip.php $v_file
3033 TooManyArgument wp-admin/includes/class-pclzip.php pack('VvvvvvVVVvv', 0x04034b50, $p_header['version_extracted'], $p_header['flag'], $p_header['compression'], $v_mtime, $v_mdate, $p_header['crc'], $p_header['compressed_size'], $p_header['size'], strlen($p_header['stored_filename']), $p_header['extra_len'])
3080 TooManyArgument wp-admin/includes/class-pclzip.php pack('VvvvvvvVVVvvvvvVV', 0x02014b50, $p_header['version'], $p_header['version_extracted'], $p_header['flag'], $p_header['compression'], $v_mtime, $v_mdate, $p_header['crc'], $p_header['compressed_size'], $p_header['size'], strlen($p_header['stored_filename']), $p_header['extra_len'], $p_header['comment_len'], $p_header['disk'], $p_header['internal'], $p_header['external'], $p_header['offset'])
3123 TooManyArgument wp-admin/includes/class-pclzip.php pack('VvvvvVVv', 0x06054b50, 0, 0, $p_nb_entries, $p_nb_entries, $p_size, $p_offset, strlen($p_comment))
3969 UseUndeclaredVariable wp-admin/includes/class-pclzip.php $v_file
3976 TooManyArgument wp-admin/includes/class-pclzip.php pack('va1a1Va1a1', 0x8b1f, Chr($p_entry['compression']), "\0", time(), "\0", '')
3991 TooManyArgument wp-admin/includes/class-pclzip.php pack('VV', $p_entry['crc'], $p_entry['size'])
5288 UnknownFunction wp-admin/includes/class-pclzip.php PclError($p_error_code, $p_error_string)
5305 UnknownFunction wp-admin/includes/class-pclzip.php PclErrorReset()
5340 BadArgumentType wp-admin/includes/class-pclzip.php parameter 1 of set_magic_quotes_runtime() requires Boolean, called with Int64
65 UnknownFunction wp-admin/includes/class-wp-filesystem-ftpext.php ftp_connect($this->options['hostname'], $this->options['port'], FS_CONNECT_TIMEOUT)
72 UnknownFunction wp-admin/includes/class-wp-filesystem-ftpext.php ftp_login($this->link, $this->options['username'], $this->options['password'])
78 UnknownFunction wp-admin/includes/class-wp-filesystem-ftpext.php ftp_pasv($this->link, true)
79 UnknownFunction wp-admin/includes/class-wp-filesystem-ftpext.php ftp_get_option($this->link, FTP_TIMEOUT_SEC)
79 UseUndeclaredConstant wp-admin/includes/class-wp-filesystem-ftpext.php FTP_TIMEOUT_SEC
80 UnknownFunction wp-admin/includes/class-wp-filesystem-ftpext.php ftp_set_option($this->link, FTP_TIMEOUT_SEC, FS_TIMEOUT)
80 UseUndeclaredConstant wp-admin/includes/class-wp-filesystem-ftpext.php FTP_TIMEOUT_SEC
96 UnknownFunction wp-admin/includes/class-wp-filesystem-ftpext.php ftp_fget($this->link, $temp, $file, FTP_BINARY)
145 UnknownFunction wp-admin/includes/class-wp-filesystem-ftpext.php ftp_fput($this->link, $file, $temp, FTP_BINARY)
159 UnknownFunction wp-admin/includes/class-wp-filesystem-ftpext.php ftp_pwd($this->link)
170 UnknownFunction wp-admin/includes/class-wp-filesystem-ftpext.php ftp_chdir($this->link, $dir)
198 UnknownFunction wp-admin/includes/class-wp-filesystem-ftpext.php ftp_site($this->link, sprintf('CHMOD %o %s', $mode, $file))
250 UnknownFunction wp-admin/includes/class-wp-filesystem-ftpext.php ftp_rename($this->link, $source, $destination)
262 UnknownFunction wp-admin/includes/class-wp-filesystem-ftpext.php ftp_delete($this->link, $file)
264 UnknownFunction wp-admin/includes/class-wp-filesystem-ftpext.php ftp_rmdir($this->link, $file)
270 UnknownFunction wp-admin/includes/class-wp-filesystem-ftpext.php ftp_rmdir($this->link, $file)
277 UnknownFunction wp-admin/includes/class-wp-filesystem-ftpext.php ftp_nlist($this->link, $file)
293 UnknownFunction wp-admin/includes/class-wp-filesystem-ftpext.php ftp_chdir($this->link, trailingslashit($path))
295 UnknownFunction wp-admin/includes/class-wp-filesystem-ftpext.php ftp_chdir($this->link, $cwd)
327 UnknownFunction wp-admin/includes/class-wp-filesystem-ftpext.php ftp_mdtm($this->link, $file)
334 UnknownFunction wp-admin/includes/class-wp-filesystem-ftpext.php ftp_size($this->link, $file)
356 UnknownFunction wp-admin/includes/class-wp-filesystem-ftpext.php ftp_mkdir($this->link, $path)
379 UnknownFunction wp-admin/includes/class-wp-filesystem-ftpext.php ftp_systype($this->link)
463 UnknownFunction wp-admin/includes/class-wp-filesystem-ftpext.php ftp_pwd($this->link)
464 UnknownFunction wp-admin/includes/class-wp-filesystem-ftpext.php ftp_chdir($this->link, $path)
466 UnknownFunction wp-admin/includes/class-wp-filesystem-ftpext.php ftp_rawlist($this->link, '-a', false)
467 UnknownFunction wp-admin/includes/class-wp-filesystem-ftpext.php ftp_chdir($this->link, $pwd)
506 UnknownFunction wp-admin/includes/class-wp-filesystem-ftpext.php ftp_close($this->link)
97 UnknownFunction wp-admin/includes/class-wp-filesystem-ssh2.php ssh2_connect($this->options['hostname'], $this->options['port'])
99 UnknownFunction wp-admin/includes/class-wp-filesystem-ssh2.php ssh2_connect($this->options['hostname'], $this->options['port'], $this->options['hostkey'])
108 UnknownFunction wp-admin/includes/class-wp-filesystem-ssh2.php ssh2_auth_password($this->link, $this->options['username'], $this->options['password'])
113 UnknownFunction wp-admin/includes/class-wp-filesystem-ssh2.php ssh2_auth_pubkey_file($this->link, $this->options['username'], $this->options['public_key'], $this->options['private_key'], $this->options['password'])
119 UnknownFunction wp-admin/includes/class-wp-filesystem-ssh2.php ssh2_sftp($this->link)
134 UnknownFunction wp-admin/includes/class-wp-filesystem-ssh2.php ssh2_exec($this->link, $command)
313 UnknownFunction wp-admin/includes/class-wp-filesystem-ssh2.php ssh2_sftp_rename($this->sftp_link, $source, $destination)
324 UnknownFunction wp-admin/includes/class-wp-filesystem-ssh2.php ssh2_sftp_unlink($this->sftp_link, $file)
326 UnknownFunction wp-admin/includes/class-wp-filesystem-ssh2.php ssh2_sftp_rmdir($this->sftp_link, $file)
333 UnknownFunction wp-admin/includes/class-wp-filesystem-ssh2.php ssh2_sftp_rmdir($this->sftp_link, $file)
426 UnknownFunction wp-admin/includes/class-wp-filesystem-ssh2.php ssh2_sftp_mkdir($this->sftp_link, $path, $chmod, true)
2669 TooManyArgument wp-admin/includes/class-wp-upgrader.php $skin->error(__('Installation Failed'), $upgrade_result)
290 UseUndeclaredVariable wp-admin/includes/ms.php $current_user
232 UseUndeclaredConstant wp-admin/menu.php WP_ALLOW_MULTISITE
45 UseUndeclaredConstant wp-admin/network/menu.php WP_ALLOW_MULTISITE
336 UseUndeclaredConstant wp-admin/options-general.php WPLANG
336 UseUndeclaredConstant wp-admin/options-general.php WPLANG
336 UseUndeclaredConstant wp-admin/options-general.php WPLANG
337 UseUndeclaredConstant wp-admin/options-general.php WPLANG
99 UseUndeclaredGlobalVariable wp-content/themes/twentyeleven/header.php $post
36 UseUndeclaredGlobalVariable wp-content/themes/twentyeleven/image.php $post
98 UseUndeclaredGlobalVariable wp-content/themes/twentyeleven/showcase.php $post
33 UseUndeclaredGlobalVariable wp-content/themes/twentyfourteen/image.php $post
84 UseUndeclaredGlobalVariable wp-content/themes/twentyten/header.php $post
23 UseUndeclaredGlobalVariable wp-content/themes/twentyten/loop.php $wp_query
62 UseUndeclaredGlobalVariable wp-content/themes/twentyten/loop.php $post
23 UseUndeclaredGlobalVariable wp-content/themes/twentythirteen/image.php $post
32 UseUndeclaredGlobalVariable wp-content/themes/twentytwelve/image.php $post
150 UnknownObjectMethod wp-includes/ID3/getid3.php $this->startup_error('magic_quotes_runtime must be disabled before running getID3(). Surround getid3 block by set_magic_quotes_runtime(0) and set_magic_quotes_runtime(1).')
1377 BadArgumentType wp-includes/ID3/getid3.php parameter 1 of ignore_user_abort() requires Boolean, called with Int64
28 BadDefine wp-includes/ID3/module.audio-video.asf.php define($GUIDname, $this->GUIDtoBytestring($hexstringvalue))
74 UseUndeclaredConstant wp-includes/ID3/module.audio-video.asf.php GETID3_ASF_Header_Object
76 UseUndeclaredConstant wp-includes/ID3/module.audio-video.asf.php GETID3_ASF_Header_Object
95 UseUndeclaredConstant wp-includes/ID3/module.audio-video.asf.php GETID3_ASF_File_Properties_Object
171 UseUndeclaredConstant wp-includes/ID3/module.audio-video.asf.php GETID3_ASF_Stream_Properties_Object
222 UseUndeclaredConstant wp-includes/ID3/module.audio-video.asf.php GETID3_ASF_Audio_Media
231 UseUndeclaredConstant wp-includes/ID3/module.audio-video.asf.php GETID3_ASF_Video_Media
236 UseUndeclaredConstant wp-includes/ID3/module.audio-video.asf.php GETID3_ASF_Command_Media
247 UseUndeclaredConstant wp-includes/ID3/module.audio-video.asf.php GETID3_ASF_Header_Extension_Object
268 UseUndeclaredConstant wp-includes/ID3/module.audio-video.asf.php GETID3_ASF_Reserved_1
269 UseUndeclaredConstant wp-includes/ID3/module.audio-video.asf.php GETID3_ASF_Reserved_1
291 UseUndeclaredConstant wp-includes/ID3/module.audio-video.asf.php GETID3_ASF_Codec_List_Object
432 UseUndeclaredConstant wp-includes/ID3/module.audio-video.asf.php GETID3_ASF_Script_Command_Object
488 UseUndeclaredConstant wp-includes/ID3/module.audio-video.asf.php GETID3_ASF_Marker_Object
558 UseUndeclaredConstant wp-includes/ID3/module.audio-video.asf.php GETID3_ASF_Bitrate_Mutual_Exclusion_Object
578 UseUndeclaredConstant wp-includes/ID3/module.audio-video.asf.php GETID3_ASF_Mutex_Bitrate
578 UseUndeclaredConstant wp-includes/ID3/module.audio-video.asf.php GETID3_ASF_Mutex_Unknown
579 UseUndeclaredConstant wp-includes/ID3/module.audio-video.asf.php GETID3_ASF_Mutex_Bitrate
579 UseUndeclaredConstant wp-includes/ID3/module.audio-video.asf.php GETID3_ASF_Mutex_Unknown
591 UseUndeclaredConstant wp-includes/ID3/module.audio-video.asf.php GETID3_ASF_Error_Correction_Object
614 UseUndeclaredConstant wp-includes/ID3/module.audio-video.asf.php GETID3_ASF_No_Error_Correction
619 UseUndeclaredConstant wp-includes/ID3/module.audio-video.asf.php GETID3_ASF_Audio_Spread
640 UseUndeclaredConstant wp-includes/ID3/module.audio-video.asf.php GETID3_ASF_Audio_Spread
640 UseUndeclaredConstant wp-includes/ID3/module.audio-video.asf.php GETID3_ASF_No_Error_Correction
647 UseUndeclaredConstant wp-includes/ID3/module.audio-video.asf.php GETID3_ASF_Content_Description_Object
700 UseUndeclaredConstant wp-includes/ID3/module.audio-video.asf.php GETID3_ASF_Extended_Content_Description_Object
905 UseUndeclaredConstant wp-includes/ID3/module.audio-video.asf.php GETID3_ASF_Stream_Bitrate_Properties_Object
936 UseUndeclaredConstant wp-includes/ID3/module.audio-video.asf.php GETID3_ASF_Padding_Object
956 UseUndeclaredConstant wp-includes/ID3/module.audio-video.asf.php GETID3_ASF_Extended_Content_Encryption_Object
957 UseUndeclaredConstant wp-includes/ID3/module.audio-video.asf.php GETID3_ASF_Content_Encryption_Object
1008 UseUndeclaredConstant wp-includes/ID3/module.audio-video.asf.php GETID3_ASF_Audio_Media
1065 UseUndeclaredConstant wp-includes/ID3/module.audio-video.asf.php GETID3_ASF_Video_Media
1158 UseUndeclaredConstant wp-includes/ID3/module.audio-video.asf.php GETID3_ASF_Data_Object
1204 UseUndeclaredConstant wp-includes/ID3/module.audio-video.asf.php GETID3_ASF_Simple_Index_Object
1248 UseUndeclaredConstant wp-includes/ID3/module.audio-video.asf.php GETID3_ASF_Index_Object
1709 UseUndeclaredConstant wp-includes/ID3/module.audio-video.asf.php GETID3_ASF_Extended_Stream_Properties_Object
1800 UseUndeclaredConstant wp-includes/ID3/module.audio-video.asf.php GETID3_ASF_Padding_Object
1804 UseUndeclaredConstant wp-includes/ID3/module.audio-video.asf.php GETID3_ASF_Metadata_Object
1859 UseUndeclaredConstant wp-includes/ID3/module.audio-video.asf.php GETID3_ASF_Language_List_Object
1876 UseUndeclaredConstant wp-includes/ID3/module.audio-video.asf.php GETID3_ASF_Metadata_Library_Object
1115 UseUndeclaredConstant wp-includes/ID3/module.audio-video.riff.php sCompression
1161 UnknownClass wp-includes/ID3/module.audio-video.riff.php new getid3_mpeg($getid3_temp)
38 TooManyArgument wp-includes/ID3/module.audio.mp3.php $this->getOnlyMPEGaudioInfoBruteForce($this->getid3->fp, $info)
434 TooFewArgument wp-includes/ID3/module.tag.id3v2.php substr($footer[5])
1597 StatementHasNoEffect wp-includes/ID3/module.tag.id3v2.php $frame_ownerid == '';
94 RequiredAfterOptionalParam wp-includes/SimplePie/Locator.php $type = SIMPLEPIE_LOCATOR_ALL
54 UnknownClass wp-includes/Text/Diff/Engine/string.php PEAR::raiseError('Type of diff is unsupported')
61 UnknownClass wp-includes/Text/Diff/Engine/string.php PEAR::raiseError('Type of diff could not be detected')
30 UnknownFunction wp-includes/Text/Diff/Engine/xdiff.php xdiff_string_diff($from_string, $to_string, count($to_lines))
359 TooManyArgument wp-includes/class-json.php pack('C*', $ord_var_c, ord($var[$c + 1]))
373 TooManyArgument wp-includes/class-json.php pack('C*', $ord_var_c, @ord($var[$c + 1]), @ord($var[$c + 2]))
389 TooManyArgument wp-includes/class-json.php pack('C*', $ord_var_c, ord($var[$c + 1]), ord($var[$c + 2]), ord($var[$c + 3]))
406 TooManyArgument wp-includes/class-json.php pack('C*', $ord_var_c, ord($var[$c + 1]), ord($var[$c + 2]), ord($var[$c + 3]), ord($var[$c + 4]))
424 TooManyArgument wp-includes/class-json.php pack('C*', $ord_var_c, ord($var[$c + 1]), ord($var[$c + 2]), ord($var[$c + 3]), ord($var[$c + 4]), ord($var[$c + 5]))
911 UnknownBaseClass wp-includes/class-json.php PEAR_Error
916 UnknownClass wp-includes/class-json.php PEAR_Error::PEAR_Error($message, $code, $mode, $options, $userinfo)
52 BadArgumentType wp-includes/class-phpass.php parameter 1 of uniqid() requires String, called with Int64
1569 BadArgumentType wp-includes/class-phpmailer.php parameter 1 of uniqid() requires String, called with Int64
2137 BadArgumentType wp-includes/class-phpmailer.php parameter 1 of set_magic_quotes_runtime() requires Boolean, called with Int64
2146 BadArgumentType wp-includes/class-phpmailer.php parameter 1 of set_magic_quotes_runtime() requires Boolean, called with Int64
2826 PHPIncludeFileNotFound wp-includes/class-phpmailer.php require_once 'extras/class.html2text.php'
2827 UnknownClass wp-includes/class-phpmailer.php new html2text($html)
258 UnknownFunction wp-includes/class-smtp.php stream_socket_enable_crypto($this->smtp_conn, true, 3)
329 PHPIncludeFileNotFound wp-includes/class-smtp.php require_once 'extras/ntlm_sasl_client.php'
331 UnknownClass wp-includes/class-smtp.php new ntlm_sasl_client_class()
1476 TooManyArgument wp-includes/class-wp-customize-widgets.php remove_filter('pre_update_option', array($this, 'capture_filter_pre_update_option'), 10, 3)
65 UseUndeclaredGlobalVariable wp-includes/feed-atom-comments.php $comment
66 UseUndeclaredGlobalVariable wp-includes/feed-rdf.php $post
64 UseUndeclaredGlobalVariable wp-includes/feed-rss2-comments.php $comment
3384 UseUndeclaredConstant wp-includes/formatting.php WPLANG
3384 UseUndeclaredConstant wp-includes/formatting.php WPLANG
3385 UseUndeclaredConstant wp-includes/formatting.php WPLANG
1674 BadArgumentType wp-includes/functions.php parameter 1 of uniqid() requires String, called with Int64
1676 BadArgumentType wp-includes/functions.php parameter 1 of uniqid() requires String, called with Int64
4474 BadArgumentType wp-includes/functions.php parameter 1 of debug_backtrace() requires Int64, called with Boolean
1903 UseUndeclaredConstant wp-includes/ms-functions.php NOBLOGREDIRECT
150 UseUndeclaredConstant wp-includes/ms-settings.php NOBLOGREDIRECT
151 UseUndeclaredConstant wp-includes/ms-settings.php NOBLOGREDIRECT
850 RequiredAfterOptionalParam wp-includes/nav-menu.php $object_id = 0
754 BadArgumentType wp-includes/option.php parameter 2 of setcookie() requires String, called with Int64
69 TooManyArgument wp-includes/pomo/mo.php pack('V*', 0x950412de, 0, $total, 28, $translations_lenghts_addr, 0, $hash_addr)
74 TooManyArgument wp-includes/pomo/mo.php pack('VV', 0, $hash_addr)
83 TooManyArgument wp-includes/pomo/mo.php pack('VV', $length, $current_addr)
88 TooManyArgument wp-includes/pomo/mo.php pack('VV', $reader->strlen($exported_headers), $current_addr)
95 TooManyArgument wp-includes/pomo/mo.php pack('VV', $length, $current_addr)
2709 TooManyArgument wp-includes/post.php delete_option('page_for_posts', 0)
381 UseUndeclaredVariable wp-includes/rss.php $php_errormsg
382 UseUndeclaredVariable wp-includes/rss.php $php_errormsg
436 UnknownFunction wp-includes/rss.php debug($cache->ERROR, 512)
455 UnknownFunction wp-includes/rss.php debug('MagpieRSS: Cache HIT', 1024)
478 UnknownFunction wp-includes/rss.php debug('Got 304 for ' . $url)
488 UnknownFunction wp-includes/rss.php debug('Fetch successful')
517 UnknownFunction wp-includes/rss.php debug('Returning STALE object for ' . $url)
807 UseUndeclaredVariable wp-includes/rss.php $php_errormsg
808 UseUndeclaredVariable wp-includes/rss.php $php_errormsg
855 UseUndeclaredConstant wp-includes/script-loader.php ENFORCE_GZIP
1012 UseUndeclaredConstant wp-includes/script-loader.php ENFORCE_GZIP
44 UseUndeclaredGlobalVariable wp-includes/theme-compat/comments-popup.php $id
69 UseUndeclaredGlobalVariable wp-includes/theme-compat/comments-popup.php $user_ID
70 UseUndeclaredGlobalVariable wp-includes/theme-compat/comments-popup.php $user_identity
72 UseUndeclaredGlobalVariable wp-includes/theme-compat/comments.php $user_identity
76 UseUndeclaredGlobalVariable wp-includes/theme-compat/comments.php $comment_author
76 UseUndeclaredGlobalVariable wp-includes/theme-compat/comments.php $req
79 UseUndeclaredGlobalVariable wp-includes/theme-compat/comments.php $comment_author_email
82 UseUndeclaredGlobalVariable wp-includes/theme-compat/comments.php $comment_author_url
96 UseUndeclaredGlobalVariable wp-includes/theme-compat/comments.php $post
2808 TooManyArgument wp-includes/wp-db.php mysqli_get_client_version($this->dbh)
2810 UnknownFunction wp-includes/wp-db.php mysql_get_client_version($this->dbh)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment