Last modified: 2011-04-01 23:53:47 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T30378, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 28378 - Do static analysis on REL1_17
Do static analysis on REL1_17
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
1.17.x
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: 26676
  Show dependency treegraph
 
Reported: 2011-04-01 23:46 UTC by Sam Reed (reedy)
Modified: 2011-04-01 23:53 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Sam Reed (reedy) 2011-04-01 23:46:37 UTC
reedy@ubuntu64-esxi:~/mediawiki/branches/REL1_17$ find phase3/ \( -name \*.php -or -name \*.inc \) -not \( -name importUseModWiki.php -o -name diffLanguage.php -o -name LocalSettings.php -o -name Parser?????.php \) -exec php tools/code-utils/check-vars.php \{\} +
Could not open input file: tools/code-utils/check-vars.php
reedy@ubuntu64-esxi:~/mediawiki/branches/REL1_17$ find phase3/ \( -name \*.php -or -name \*.inc \) -not \( -name importUseModWiki.php -o -name diffLanguage.php -o -name LocalSettings.php -o -name Parser?????.php \) -exec php ~/mediawiki/trunk/tools/code-utils/check-vars.php \{\} +
Problems in phase3/includes/api/ApiParse.php:
 Unused global $wgEnableParserCache in function execute line 68
Problems in phase3/includes/api/ApiUnblock.php:
 Use of unknown class IPUnblockForm in line 78
Problems in phase3/includes/api/ApiMain.php:
 Global variable $wgAPICacheHelp is not present in DefaultSettings
Problems in phase3/includes/LocalisationCache.php:
 return in line 211 is not preceded by wfProfileOut
 return in line 231 is not preceded by wfProfileOut
Problems in phase3/includes/db/DatabasePostgres.php:
 Global variable $wgDBts2schema is not present in DefaultSettings
Problems in phase3/includes/db/Database.php:
 Global variable $title in line 2990, function fileCachedPage does not follow coding conventions
Problems in phase3/includes/json/FormatJson.php:
 Use of undefined constant SERVICES_JSON_LOOSE_TYPE in line 48
Problems in phase3/includes/resourceloader/ResourceLoader.php:
 Global variable $wgResourceLoaderMinifyJSVerticalSpace is not present in DefaultSettings
Problems in phase3/includes/ForkController.php:
 Global variable $wgCaches is not present in DefaultSettings
Problems in phase3/includes/media/Bitmap.php:
 return in line 257 is not preceded by wfProfileOut
 return in line 260 is not preceded by wfProfileOut
 Reached end of BitmapHandler::transformImageMagick with last statement not being wfProfileOut
 return in line 290 is not preceded by wfProfileOut
 return in line 292 is not preceded by wfProfileOut
 Reached end of BitmapHandler::transformCustom with last statement not being wfProfileOut
Problems in phase3/includes/media/SVG.php:
 return in line 123 is not preceded by wfProfileOut
 return in line 125 is not preceded by wfProfileOut
 Reached end of SvgHandler::rasterize with last statement not being wfProfileOut
Problems in phase3/includes/media/DjVu.php:
 return in line 120 is not preceded by wfProfileOut
 return in line 122 is not preceded by wfProfileOut
 Reached end of DjVuHandler::doTransform with last statement not being wfProfileOut
 return in line 181 is not preceded by wfProfileOut
Problems in phase3/includes/Profiler.php:
 return in line 347 is not preceded by wfProfileOut
 Reached end of Profiler::getFunctionReport with last statement not being wfProfileOut
Problems in phase3/includes/Hooks.php:
 return in line 169 is not preceded by wfProfileOut
 return in line 192 is not preceded by wfProfileOut
 return in line 196 is not preceded by wfProfileOut
 Reached end of ::wfRunHooks with last statement not being wfProfileOut
Problems in phase3/includes/specials/SpecialUploadStash.php:
 Unused global $wgOut in function execute line 59
Problems in phase3/includes/specials/SpecialImport.php:
 $wgOut marked as global again in line 60, function execute
Problems in phase3/includes/specials/SpecialActiveusers.php:
 Use of unknown class UsersPager in line 33
Problems in phase3/includes/upload/UploadBase.php:
 Empty statement
Problems in phase3/includes/installer/Installer.php:
 Unused global $wgHooks in function __construct line 307
 Did not found the expected require of /home/reedy/mediawiki/trunk/tools/code-utils/../../phase3//AdminSettings.php
 $wgHooks is used as local variable in line 1206, function includeExtensions
 $wgHooks is used as local variable in line 1207, function includeExtensions
 Unused global $wgAutoloadClasses in function includeExtensions line 1199
Problems in phase3/includes/User.php:
 Global variable $wgLogAutocreatedAccounts is not present in DefaultSettings
Problems in phase3/includes/Profiler.php:
 return in line 347 is not preceded by wfProfileOut
 Reached end of Profiler::getFunctionReport with last statement not being wfProfileOut
Problems in phase3/includes/Article.php:
 return in line 1847 is not preceded by wfProfileOut
 Reached end of Article::incViewCount with last statement not being wfProfileOut
Problems in phase3/includes/ObjectCache.php:
 Global variable $wgCaches is not present in DefaultSettings
Problems in phase3/includes/Skin.php:
 Unused global $wgRestrictionTypes in function makeGlobalVariablesScript line 425
Problems in phase3/includes/MessageCache.php:
 Global variable $wgContLanguageCode is not present in DefaultSettings
Problems in /home/reedy/mediawiki/trunk/tools/code-utils/../../phase3//maintenance/doMaintenance.php:
 Did not found the expected require of /home/reedy/mediawiki/trunk/tools/code-utils/../../phase3//AdminSettings.php
Problems in phase3/languages/Language.php:
 Reached end of Language::getMagic with last statement not being wfProfileOut
Problems in phase3/maintenance/minify.php:
 Global variable $wgResourceLoaderMinifyJSVerticalSpace is not present in DefaultSettings
Problems in phase3/maintenance/benchmarkPurge.php:
 Did not found the expected require of phase3/maintenance/DO_MAINTENANCE
Problems in phase3/maintenance/upgrade1_5.php:
 Poisoned function create_function called from copyTable in line 340: create_function should be avoided. See http://www.mediawiki.org/wiki/Security_for_developers#Dynamic_code_generation
Problems in phase3/maintenance/fuzz-tester.php:
 Poisoned function create_function called from makeTitleSafe in line 810: create_function should be avoided. See http://www.mediawiki.org/wiki/Security_for_developers#Dynamic_code_generation
Problems in phase3/maintenance/tests/parser/parserTestsParserHook.php:
 Poisoned function var_dump called from hook in line 38: Debugging function.
Problems in phase3/maintenance/tests/parser/parserTest.inc:
 Poisoned function var_dump called from fuzzTest in line 244: Debugging function.
Problems in phase3/maintenance/tests/RunSeleniumTests.php:
 Did not found the expected require of phase3/maintenance/tests/DO_MAINTENANCE
Problems in phase3/maintenance/language/generateCollationData.php:
 Did not found the expected require of phase3/maintenance/language/DO_MAINTENANCE
Problems in phase3/profileinfo.php:
 Global variable $sort in line 186, function compare_point does not follow coding conventions
 Global variable $filter in line 252, function getEscapedProfileUrl does not follow coding conventions
 Global variable $sort in line 252, function getEscapedProfileUrl does not follow coding conventions
 Global variable $expand in line 252, function getEscapedProfileUrl does not follow coding conventions



We seem to have a few little merge errors, and such
Comment 1 Sam Reed (reedy) 2011-04-01 23:53:47 UTC
Seems Platonides check-vars.php script just does some weird ass stuff, and not target wherever it thinks...

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links